mirror of
https://github.com/iruletheworldmo/strawberry.git
synced 2024-08-13 23:12:55 -05:00
Update strawberry.py
This commit is contained in:
parent
8ac8b1f41d
commit
a4972370d8
1 changed files with 4 additions and 4 deletions
|
@ -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"}
|
||||
|
|
Loading…
Reference in a new issue