diff --git a/docs/my-website/docs/proxy/quick_start.md b/docs/my-website/docs/proxy/quick_start.md index 69712e46a1c..050d9b5983f 100644 --- a/docs/my-website/docs/proxy/quick_start.md +++ b/docs/my-website/docs/proxy/quick_start.md @@ -283,27 +283,6 @@ response = client.chat.completions.create(model="gpt-3.5-turbo", messages = [ print(response) -``` - - - -```python -from litellm import completion - -response = completion( - model="openai/gpt-3.5-turbo", - messages = [ - { - "role": "user", - "content": "this is a test request, write a short poem" - } - ], - api_key="anything", - base_url="http://0.0.0.0:4000" - ) - -print(response) - ``` @@ -369,6 +348,29 @@ query_result = embeddings.embed_query(text) print(f"TITAN EMBEDDINGS") print(query_result[:5]) +``` + + + +This is **not recommended**. There is duplicate logic as the proxy also uses the sdk, which might lead to unexpected errors. + +```python +from litellm import completion + +response = completion( + model="openai/gpt-3.5-turbo", + messages = [ + { + "role": "user", + "content": "this is a test request, write a short poem" + } + ], + api_key="anything", + base_url="http://0.0.0.0:4000" + ) + +print(response) + ```