litellm.exceptions.ServiceUnavailableError: AnthropicException - anthropic does not support parameters: {'functions': [{'name': 'execute', 'description': "Executes code on the user's machine **in the users local environment** and returns the output", 'parameters': {'type': 'object', 'properties': {'language': {'type': 'string', 'description': 'The programming language (required parameter to the `execute` function)', 'enum': ['ruby', 'python', 'shell', 'javascript', 'html', 'applescript', 'r', 'powershell', 'react']}, 'code': {'type': 'string', 'description': 'The code to execute (required)'}}, 'required': ['language', 'code']}}]}. To drop these, set `litellm.drop_params=True` or for proxy:
`litellm_settings:
drop_params: true`
Reproduce
bash installers/oi-linux-installer.sh
pyenv shell 3.11
pip install -e .
export ANTHROPIC_API_KEY=sk-XXXX
interpreter --model claude-3-haiku-20240307 -y
Enter any prompt like "pythonで円周率をprintするプログラムを書いてください".
Expected behavior
Works fine.
Screenshots
Open Interpreter version
0.2.5
Python version
3.11.7
Operating System name and version
Ubuntu 23.04
Additional context
interpreter --model claude-3-haiku-20240307 -y --no-llm_supports_functions
works fine.
Why functions not works for claude-3?
Describe the bug
Reproduce
Expected behavior
Works fine.
Screenshots
Open Interpreter version
0.2.5
Python version
3.11.7
Operating System name and version
Ubuntu 23.04
Additional context
interpreter --model claude-3-haiku-20240307 -y --no-llm_supports_functions works fine. Why functions not works for claude-3?
This document shows functions of claude-3 should work(my litellm==1.35.29). https://litellm.vercel.app/docs/providers/anthropic