Downloads · 30 days
0
bedri95123/Cenova_Bedi
Cenova_Bedi is a machine learning model from bedri95123. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Aug 20, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 77%
From the Hugging Face model README
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)