Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

litellm.exceptions.ServiceUnavailableError: AnthropicException - anthropic does not support parameters: {'functions' #1240

Open
nobu007 opened this issue Apr 27, 2024 · 0 comments

Comments

@nobu007
Copy link

nobu007 commented Apr 27, 2024

Describe the bug

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

  1. bash installers/oi-linux-installer.sh
  2. pyenv shell 3.11
  3. pip install -e .
  4. export ANTHROPIC_API_KEY=sk-XXXX
  5. interpreter --model claude-3-haiku-20240307 -y
  6. 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?

This document shows functions of claude-3 should work(my litellm==1.35.29).
https://litellm.vercel.app/docs/providers/anthropic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant