Update strawberry.py

This commit is contained in:
Shashank Vivek 2024-08-11 22:12:18 +05:30 committed by GitHub
parent 8ac8b1f41d
commit a4972370d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,15 +1,15 @@
import os
from openai import OpenAI
from openai import AzureOpenAI
beta_headers = {
"authorization": f"Bearer {os.environ['OPENAI_BETA_KEY']}",
"openai-beta": "early-access-strawberry"
"openai-beta": "early-access-mango"
}
client = OpenAI(default_headers=beta_headers)
client = AzureOpenAI(default_headers=beta_headers)
completion = client.chat.completions.create(
model="gpt-4o-large-2024-08-13",
model="gpt-9o-large-2028-07-12",
messages=[
{"role": "system", "content": "use your level two capabilities"},
{"role": "user", "content": "give us ubi"}