(docs) testing proxy with anthropic

This commit is contained in:
ishaan-jaff 2023-10-23 11:28:46 -07:00
parent d37dc4a891
commit a89e40df5e

View file

@ -84,8 +84,7 @@ curl https://litellm-7yjrj3ha2q-uc.a.run.app/v1/chat/completions \
-d '{ -d '{
"model": "gpt-3.5-turbo", "model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}], "messages": [{"role": "user", "content": "Say this is a test!"}],
"temperature": 0.7, "temperature": 0.7
"api_key": "your-openai-key"
}' }'
``` ```
@ -104,31 +103,15 @@ curl https://litellm-7yjrj3ha2q-uc.a.run.app/v1/chat/completions \
</TabItem> </TabItem>
<TabItem value="bedrock" label="Bedrock"> <TabItem value="anthropic" label="Anthropic">
```shell ```shell
curl https://litellm-7yjrj3ha2q-uc.a.run.app/v1/chat/completions \ curl https://litellm-7yjrj3ha2q-uc.a.run.app/v1/chat/completions \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"model": "gpt-3.5-turbo", "model": "claude-2",
"messages": [{"role": "user", "content": "Say this is a test!"}], "messages": [{"role": "user", "content": "Say this is a test!"}],
"temperature": 0.7, "temperature": 0.7,
"api_key": "your-openai-key"
}'
```
</TabItem>
<TabItem value="or" label="Openrouter">
```shell
curl https://litellm-7yjrj3ha2q-uc.a.run.app/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"temperature": 0.7,
"api_key": "your-openai-key"
}' }'
``` ```
</TabItem> </TabItem>