Skip to content

Commit

Permalink
nicer
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
codefromthecrypt committed Nov 15, 2024
1 parent 42a8390 commit f0e9100
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@

def main():
client = OpenAI()
messages = [
{
"role": "user",
"content": "Write a short poem on OpenTelemetry.",
},
]
model = os.getenv("CHAT_MODEL", "gpt-4o-mini")
chat_completion = client.chat.completions.create(
model=model, messages=messages
model=os.getenv("CHAT_MODEL", "gpt-4o-mini"),
messages=[
{
"role": "user",
"content": "Write a short poem on OpenTelemetry.",
},
],
)
print(chat_completion.choices[0].message.content)

Expand Down

0 comments on commit f0e9100

Please sign in to comment.