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.
Exercise
Section titled “Exercise”- Request
/healthwithout authentication and record the response fields. - Follow Your first query exactly, including the non-secret
user_id. - Record
model, whetherresponseis nonempty, and whethersourcescontains anything. - Repeat the query with the Authorization header omitted. Record the rejection; do not paste your credential into notes.
- Explain why a successful health response is insufficient proof that inference works.
Acceptance criteria
Section titled “Acceptance criteria”- 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.
If results differ
Section titled “If results differ”Use the status-code reference and troubleshooting. A slow model is not necessarily a failed HTTP connection.
Finish
Section titled “Finish”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.