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
Currently this code. breaks when executing using model.
model = LiteLLMModel(
model_id="ollama/llama3-groq-tool-use",
api_base="http://localhost:11434",
)
@tool
def uf_daily_value(date: str) -> str:
"""
Get the daily uf value.
Args:
date: the date
"""
return "The daily uf value is 38.500 CLP"
also fails at this
@tool
def uf_daily_value() -> str:
"""
Get the daily uf value.
Args:
"""
return "The daily uf value is 38.500 CLP"
this is the error message
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
Error in generating tool call with model:
litellm.APIConnectionError: 'name'
Traceback (most recent call last):
File "/home/eddwinpaz/Documents/work/langchain-llm-app/venv/lib/python3.10/site-packages/litellm/main.py", line 2680, in completion
response = base_llm_http_handler.completion(
File "/home/eddwinpaz/Documents/work/langchain-llm-app/venv/lib/python3.10/site-packages/litellm/llms/custom_httpx/llm_http_handler.py", line 334, in completion
return provider_config.transform_response(
File "/home/eddwinpaz/Documents/work/langchain-llm-app/venv/lib/python3.10/site-packages/litellm/llms/ollama/completion/transformation.py", line 263, in transform_response
"name": function_call["name"],
KeyError: 'name'
The text was updated successfully, but these errors were encountered:
Currently this code. breaks when executing using model.
also fails at this
this is the error message
The text was updated successfully, but these errors were encountered: