Skip to content

Lab 01: inspect an API answer

Prerequisites: verified installation, a lab API key, and WSL Bash. Artifact: a short table of observed status codes and response fields.

  1. Request /health without authentication and record the response fields.
  2. Follow Your first query exactly, including the non-secret user_id.
  3. Record model, whether response is nonempty, and whether sources contains anything.
  4. Repeat the query with the Authorization header omitted. Record the rejection; do not paste your credential into notes.
  5. Explain why a successful health response is insufficient proof that inference works.
  • The authenticated request returns a nonempty answer.
  • The unauthenticated query is rejected.
  • Your notes distinguish service reachability, authentication, and generation.
  • You explain why an empty knowledge store can produce no sources.

Use the status-code reference and troubleshooting. A slow model is not necessarily a failed HTTP connection.

Unset your terminal API_KEY when done. If memory is enabled, follow the conversation deletion limitations before claiming the exercise left no stored data.

Next: Lab 02: routing.