Conversation
POST /v1/systemone and GET /v1/models follow the documented wire shape. Every question reuses the same example numbers instead of inventing a result from the request. Co-authored-by: M N V Sai Krishna <mnvsk97@gmail.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a local TypeSafe HTTP mock under
tools/typesafe-mock. It serves the two documented endpoints and always returns the published example numbers. It does not call a model.Changes
POST /v1/systemoneacceptsnoul,choice, andscorequestions and returnsmodel,answers, andusage.GET /v1/modelslistsjev-latestandjev-preview.noul0.92, choice 0.08/0.85/0.07, score 1.6). The three documented requests return that JSON exactly.403body. A wrong key returns401only whenTYPESAFE_API_KEYis set.How was this tested?
Curled
POST /v1/systemonefor the documented urgency example and for a different mixed request. Both returned the fixed example numbers.GET /v1/modelsreturned the alias list.Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locally.env.exampleupdated if configuration or behavior changed