A real model API
The code here is the code used at real jobs. What a student practices keeps working after they leave Trace.
Run a model call
The same code a professional writes, on a key that can't run up a bill
Pick a message
from trace_sdk import Trace
client = Trace()
reply = client.chat.completions.create(
messages=[
{"role": "user",
"content": "Say hello in three words."},
],
)
print(reply.text)reply.text