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",
}
],
)