You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to use LangChain with local Ollama to execute function.
However, it produces no output contents:
ASSISTANT: content='' additional_kwargs={} response_metadata={'model': 'llama3.1:8b-instruct-q8_0', 'created_at': '2024-11-07T14:21:57.65997886Z', 'message': {'role': 'assistant', 'content': '', 'tool_calls': [{'function': {'name': 'book_appointment', 'arguments': {'date': 'Sunday 13 October 2024', 'time': '9 AM'}}}]}, 'done_reason': 'stop', 'done': True, 'total_duration': 629731509, 'load_duration': 10817049, 'prompt_eval_count': 597, 'prompt_eval_duration': 109600000, 'eval_count': 31, 'eval_duration': 376007000} id='run-ea7155b8-eaea-494a-b74d-c98c276557d5-0' tool_calls=[{'name': 'book_appointment', 'args': {'date': 'Sunday 13 October 2024', 'time': '9 AM'}, 'id': 'cabd3450-02a7-4a97-85e6-6438af56cdbc', 'type': 'tool_call'}] usage_metadata={'input_tokens': 597, 'output_tokens': 31, 'total_tokens': 628}
And it seems that is attempting to pass arguments to a function that needs none.
The function is not executed and there is no error message.
Using Llama on the cloud is not an option. Other local models could do.
System Info
pip freeze | grep langchain 127 ✘
langchain==0.3.7
langchain-community==0.3.5
langchain-core==0.3.15
langchain-experimental==0.3.3
langchain-ollama==0.2.0
langchain-text-splitters==0.3.2
Linux
Python 3.12.6
python -m langchain_core.sys_info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions