This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import litellm | |
| import os | |
| response = litellm.completion( | |
| model="openai/deepseek-ai/DeepSeek-V3-0324", # add `openai/` prefix to model so litellm knows to route to OpenAI | |
| api_key="<Add your API key here>", # api key to your openai compatible endpoint | |
| api_base="https://llm.chutes.ai/v1", # set API Base of your Custom OpenAI Endpoint | |
| messages=[ | |
| { | |
| "role": "user", |