Repository navigation
feat(typesafe): backport #41607 to stable/1.99.x for v1.99.2 - #42598
Merged
Merged
Conversation
devin-ai-integration
Bot
requested a review
from mateo-berri
as a code owner
September 22, 2026 21:36
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
Contributor
|
bugbot run |
Contributor
Author
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 7d1db43. Configure here.
This was referenced Sep 23, 2026
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.
TLDR
Problem this solves:
How it solves it:
stable/1.99.xfor v1.99.2/typesafe/*passthrough route with logging and cost trackingtypesafe/jev-latest,typesafe/jev-preview,typesafe/jev-1.13.0pricing entriesIncluded PRs:
User Flow
Before: a developer on stable 1.99.x points their TypeSafe client at the proxy and every call is refused
TYPESAFE_API_KEYand starts the proxy fromstable/1.99.xmodel: jev-latestpayloadAfter: the same call is forwarded to TypeSafe and logged with spend
TYPESAFE_API_KEYand starts the proxy from this branchtypesafe/jev-latestwith non-zero spendRelevant issues
Backport of #41607
Affected release
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Live proxy started with
python litellm/proxy/proxy_cli.py --config config.yaml --port 4000 --detailed_debug(master keysk-1234,TYPESAFE_API_KEYset from the shared vault) at each sha, one real call to https://api.typesafe.ai per legBefore (3c08f26,
stable/1.99.xmerge base)POST /typesafe/v1/systemone
curl -s -w "\nHTTP %{http_code}\n" -X POST http://localhost:4000/typesafe/v1/systemone
-H "Authorization: Bearer sk-1234" -H "Content-Type: application/json"
-d '{"state":"Help! My payouts have been failing for 3 days.","model":"jev-latest","questions":{"department":{"type":"choice","instructions":"Which team should handle this?","criteria":{"billing":"Payments, invoicing, refunds","technical":"Bugs, outages, integrations","sales":"Pricing, upgrades, new accounts"}}}}'
After (7d1db43, PR tip)
POST /typesafe/v1/systemone
{"model":"jev-1.13.0","answers":{"department":{"type":"choice","choice":"billing","confidence":0.83,"probabilities":{"sales":0.0,"billing":0.88,"technical":0.12}}},"usage":{"input_tokens":349,"output_tokens":38}}
HTTP 200
response_cost: 1.4658e-05