docs(anthropic.md): update anthropic docs to show 'tool' param usage

This commit is contained in:
Krrish Dholakia 2024-04-06 08:35:43 -07:00
parent 30f57e7aa5
commit afa2e2eba9

View file

@ -177,11 +177,7 @@ print(response)
:::info
Claude returns it's output as an XML Tree. [Here is how we translate it](https://github.com/BerriAI/litellm/blob/49642a5b00a53b1babc1a753426a8afcac85dbbe/litellm/llms/prompt_templates/factory.py#L734).
You can see the raw response via `response._hidden_params["original_response"]`.
Claude hallucinates, e.g. returning the list param `value` as `<value>\n<item>apple</item>\n<item>banana</item>\n</value>` or `<value>\n<list>\n<item>apple</item>\n<item>banana</item>\n</list>\n</value>`.
LiteLLM now uses Anthropic's 'tool' param 🎉 (v1.34.29+)
:::
```python