-
Notifications
You must be signed in to change notification settings - Fork 89
[Release] Hotfix - OpenRouter auto negative pricing #564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 52 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
e30228f
add-resource-tavily
zdql e53edfe
add tavily resource
zdql 27dbd15
cleanup
zdql 89b3451
db changes
alvaroechevarriacuesta 3278e3f
implement refund logic for failed sora requests
alvaroechevarriacuesta af978d0
check in
alvaroechevarriacuesta 54ecfe0
fix migrations
alvaroechevarriacuesta 7c6a514
fix with new atomic logic
alvaroechevarriacuesta b4f7f93
tested
alvaroechevarriacuesta 0ec1dc2
increase api route limit to 4mb
sragss 56b1dc0
Merge pull request #562 from Merit-Systems/sragss/fix-img-template
sragss e799344
remove openrouter/auto
zdql 8b1b227
fix model price
zdql b3998c5
Merge branch 'master' into br/add-resource-tavily
zdql 0cded6c
format
zdql 293fd59
Merge pull request #541 from Merit-Systems/br/add-resource-tavily
rsproule 63a38e4
add E2b, fix tavily
zdql 2ac0348
format
zdql c1ae0cf
Merge pull request #565 from Merit-Systems/br/add-resource-e2b
zdql 9b98dc1
add long tail tavily routes
zdql 3fd58d0
Merge pull request #567 from Merit-Systems/br/add-resource-e2b
zdql 6facf82
fix laggy integ
zdql 34d7c38
feat: add 'claude-sonnet-4-5' to Anthropic and OpenRouter provoder mo…
qibinlou 949ea98
rm migrations until finalized
alvaroechevarriacuesta b0a9890
some additional work on the table. Refunds working with x402
alvaroechevarriacuesta a2aec60
keep track of echo video gen that are non x402
alvaroechevarriacuesta 8392323
log errors on echo video gen, store total cost not rawtransaction cost
alvaroechevarriacuesta aa1f762
Merge remote-tracking branch 'origin/master' into aec/refund
alvaroechevarriacuesta 05e59cf
download only available for 1 hour according to docs
alvaroechevarriacuesta 30cc7a9
use shared object
fmhall 926aff1
Merge pull request #570 from Merit-Systems/mason/cleanup-fix
rsproule 6d16752
clean abstraction
zdql c610ce6
cleanup error handling
zdql afdaba6
Merge pull request #566 from Merit-Systems/br/add-resource-tavily
zdql 600d6aa
Merge pull request #568 from qibinlou/leo/add-sonnet-4.5-support
rsproule 447a30a
bump sdk versions for sonnet 4.5
rsproule 22150b4
fix filename
rsproule 5d63e2f
provider smoke test
rsproule 877125d
increase timeout to 15m
rsproule 4b1f540
Merge pull request #571 from Merit-Systems/rfs/bump-version-smoke
rsproule d5b2b05
Add Groq provider support
dhvll c0056c0
update the tests
rsproule d7b3728
path
rsproule 208135b
optimize this docker a bit
rsproule f27762a
docker 1
rsproule 793861c
revert docker
rsproule 2eb0e31
Merge pull request #578 from Merit-Systems/rfs/bump-version-smoke
rsproule 08c29d9
big boxes for gha
rsproule 1b6daa1
revert docker
rsproule d98d37f
Merge pull request #579 from Merit-Systems/rfs/big-box
rsproule cfd90d6
Refactor GroqProvider and update Groq model costs
dhvll f6dc1b5
update test name or
rsproule ee90834
rm timeouts
rsproule 17c237c
rm timeouts
rsproule 28d9751
rm openai timeout
rsproule 5dab845
Add Groq provider integration and update SDK dependencies
dhvll 21cd217
Merge pull request #577 from dhvll/master
rsproule 3719252
fix sdk build issues + add tests
rsproule 46fc77b
lock
rsproule 1847e34
bump versions
rsproule 813fc82
mr lock
rsproule f2202a8
update groq models with correct names
rsproule 395d070
gdmmit alv
rsproule 9584440
Merge pull request #582 from Merit-Systems/rfs/groq-takeover
rsproule ca3ea92
Merge pull request #548 from Merit-Systems/aec/refund
rsproule File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: Provider Smoke Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| paths: | ||
| - 'packages/tests/provider-smoke/**' | ||
| - 'packages/sdk/ts/**' | ||
| - 'packages/app/server/**' | ||
| - 'packages/app/control/**' | ||
| - '.github/workflows/provider-smoke-tests.yml' | ||
|
|
||
| jobs: | ||
| provider-smoke-tests: | ||
| name: Run Provider Smoke Tests | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 40 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install pnpm | ||
| run: npm install -g pnpm | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install workspace dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Wait for Railway Deployment | ||
| env: | ||
| RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} | ||
| run: | | ||
| echo "Installing Railway CLI..." | ||
| npm install -g @railway/cli | ||
|
|
||
| echo "Waiting for Railway deployment to complete..." | ||
| railway status --service echo --environment staging || echo "Service status check failed, continuing..." | ||
|
|
||
| echo "Waiting for deployment to be ready..." | ||
| max_attempts=90 | ||
| attempt=0 | ||
| while [ $attempt -lt $max_attempts ]; do | ||
| if curl -f -s -o /dev/null https://echo-staging.up.railway.app/health 2>/dev/null; then | ||
| echo "Deployment is ready!" | ||
| break | ||
| fi | ||
| attempt=$((attempt + 1)) | ||
| echo "Attempt $attempt/$max_attempts: Deployment not ready yet, waiting 10 seconds..." | ||
| sleep 10 | ||
| done | ||
|
|
||
| if [ $attempt -eq $max_attempts ]; then | ||
| echo "Deployment did not become ready in time (waited 15 minutes)" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Run Provider Smoke Tests | ||
| working-directory: ./packages/tests/provider-smoke | ||
| env: | ||
| ECHO_DATA_SERVER_URL: https://echo-staging.up.railway.app/ | ||
| ECHO_API_KEY: ${{ secrets.ECHO_API_KEY }} | ||
| ECHO_APP_ID: a4e9b928-cac0-4952-9b4e-3be01aaff45b | ||
| run: pnpm run test |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing error handling for transfer operations in the
finalizefunction - transfer failures will now throw unhandled exceptions instead of being logged and handled gracefully as in the original code.View Details
📝 Patch Details
Analysis
Missing error handling for transfer operations causes unhandled exceptions
What fails:
finalize()function and error handler inhandleX402Request()lack error handling fortransfer()calls, causing unhandled exceptions when blockchain transfers failHow to reproduce:
Result: Transfer failures now throw unhandled exceptions that can crash the request handler. Previously these were caught and logged gracefully.
Expected: Transfer failures should be caught and logged as they were before commit 0cded6c (Oct 14, 2025) which removed
.catch()error handling from both transfer locations in the name of "formatting"Evidence: Git history shows the original pattern:
await transfer(...).catch(transferError => { logger.error('Failed to process refund', { error: transferError }); });was removed and replaced with bareawait transfer(...)calls.