Quiz · 5 questions
🐍 Python SDK
Sync, async, streaming, errors, structured outputs
Level 0Tokenizer
0 XP0/54 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete
Quiz
01You're inside a FastAPI handler. Which client should you use?
Hint
Async framework, async client.
02Your code retries on every exception. A 401 keeps coming back. What's the bug?
Hint
Some errors will never get better with time.
03Streaming chunk shape: which field do you concatenate across chunks for the assistant's reply?
Hint
Delta = the bit that changed.
04Structured outputs via response_format with a Pydantic model gives you...
Hint
It's a contract, not a request.
05Batch API's cost discount and trade-off?
Hint
You trade latency for money.
Comments 0
🔔 Reply notifications (sign in)Sign in — Please sign in to comment.
No comments yet — be the first.