YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Example 1: Using OpenAI Python client
from openai import OpenAI
client = OpenAI(
# Or use the OPENAI_BASE_URL env var
base_url="https://chat.cow.rip/api/v1",
# No key is needed cause this is a proxy
api_key="none"
)
completion = client.chat.completions.create( # or openai.ChatCompletion.create (idk) model="gpt-4o-mini", messages=[ { "role": "user", "content": "Say this is a test", } ], )
print(completion.choices[0].message.content)
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support