diff --git a/openai_proxy/README.md b/openai_proxy/README.md index 7d3d1b77f4b..403d3a0e6a9 100644 --- a/openai_proxy/README.md +++ b/openai_proxy/README.md @@ -35,30 +35,15 @@ curl http://0.0.0.0:8000/v1/chat/completions \ }' ``` -### Replace openai base -```python -import openai -openai.api_base = "http://0.0.0.0:8000" - -# cohere call -response = openai.ChatCompletion.create( - model="command-nightly", - messages=[{"role":"user", "content":"Say this is a test!"}], - api_key = "your-cohere-api-key" -) - -# bedrock call -response = openai.ChatCompletion.create( - model = "bedrock/anthropic.claude-instant-v1", - messages=[{"role":"user", "content":"Say this is a test!"}], - aws_access_key_id="", - aws_secret_access_key="", - aws_region_name="us-west-2", -) - -print(response) -``` - +```shell +curl http://0.0.0.0:8000/v1/chat/completions \ + -H "Content-Type: application/json" \ + -d '{ + "model": "claude-instant-1", + "messages": [{"role": "user", "content": "Say this is a test!"}], + "temperature": 0.7 + }' +``` ### Running Locally ```shell