Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelwt committed Dec 3, 2024
1 parent aed92c3 commit 0744773
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/openai/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
api_key=os.environ.get("OPENAI_API_KEY"),
)

lunary.set_config(app_id="f94d32eb-42e2-430a-b277-3511c170267f", verbose=True)

lunary.monitor(client)

completion = client.chat.completions.create(
model="gpt-4o-audio-preview",
modalities=["audio", "text"],
audio={"voice": "alloy", "format": "wav"},
messages=[{"role": "user", "content": "Hello world"}],
messages=[{"role": "user", "content": "Tell me a short story"}],
)

print(completion.choices[0])

0 comments on commit 0744773

Please sign in to comment.