Skip to content

Commit 22b96e4

Browse files
committed
update example
1 parent ac69a92 commit 22b96e4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
import os
2-
31
from openai import OpenAI
42

53
from observers import wrap_openai
64

75

8-
openai_client = OpenAI(
9-
base_url="https://api-inference.huggingface.co/v1/", api_key=os.getenv("HF_TOKEN")
10-
)
6+
openai_client = OpenAI()
117

128
client = wrap_openai(openai_client)
139

1410
response = client.chat.completions.create(
15-
model="Qwen/Qwen2.5-72B-Instruct",
11+
model="gpt-4o",
1612
messages=[{"role": "user", "content": "Tell me a joke."}],
1713
)
1814
print(response)

0 commit comments

Comments
 (0)