Skip to content

Add a safe live API example - #2

Merged
JAORMX merged 2 commits into
mainfrom
feat/live-example
Sep 21, 2026
Merged

JAORMX merged 2 commits into
mainfrom
feat/live-example

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a small reusable live sample using an explicit API-key file, fixed official endpoint, pinned model, bounded timeout, and disabled retries.
  • Send one synthetic request containing Noul, Choice, and Score questions; print typed answers, model, and usage only.
  • Keep ordinary tests offline and document the authorized live smoke check without recording credentials or the operator-specific key path.

Verification

  • Offline tests, race tests, and vet passed with Go 1.26.6.
  • Credential-boundary review completed before execution. Model metadata is intentionally retained to verify the resolved version; it contains no credential.
  • One authorized live request succeeded: jev-1.13.0, 445 input tokens and 70 output tokens, duplicate-charge probability 0.98, billing selection, urgency 0.95.
  • No live OAuth gateway or exhaustive service-boundary conformance claim.

Load an explicitly supplied API key file only inside the sample process and send one synthetic mixed-question request with retries disabled. Keep ordinary tests offline and record the authorized live result without credentials. The smoke check validates direct API-key access and all three answer variants, not full service or OAuth conformance.

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
@JAORMX
JAORMX merged commit 409056c into main Sep 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant