Skip to content

Set 10-second timeout when requesting model prices#132

Merged
areibman merged 1 commit intoAgentOps-AI:mainfrom
varenc:tokencost-fetch-timeout
Jun 25, 2025
Merged

Set 10-second timeout when requesting model prices#132
areibman merged 1 commit intoAgentOps-AI:mainfrom
varenc:tokencost-fetch-timeout

Conversation

@varenc
Copy link
Copy Markdown
Contributor

@varenc varenc commented May 26, 2025

otherwise on a very slow connection, like the in-flight wifi I'm on, the request can hang indefinitely.

This causes it to give up after 10 seconds and fall back to using static prices.

otherwise on a very slow connection, like the in-flight wifi I'm on,
the request can hang indefinitely.
@dot-agi dot-agi requested a review from areibman June 24, 2025 19:59
@areibman
Copy link
Copy Markdown
Contributor

Didn't see this PR, sorry! Sure, why not.

@areibman areibman merged commit d878358 into AgentOps-AI:main Jun 25, 2025
4 checks passed
@areibman
Copy link
Copy Markdown
Contributor

Thanks @varenc !!

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.

2 participants