You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also use the other option of directly using Litellm endpoingts with an OpenAI client
import openai
client = openai.OpenAI(
api_key="my_key",
base_url="http://mylitellmlocalserver" # LiteLLM Proxy is OpenAI compatible, Read More: https://docs.litellm.ai/docs/proxy/user_keys
)
response = client.chat.completions.create(
model="ollama", # model to send to the proxy
messages = [
{
"role": "user",
"content": "this is a test request, write a short poem"
}
]
)
print(response)
All-Hands-AI#7312 Issue
@metalshanked, Would you check whether this litellm script is working?
The text was updated successfully, but these errors were encountered: