feat: add apiKeyHelper and apiKeyRefreshInterval options for dynamic API key management#8817
feat: add apiKeyHelper and apiKeyRefreshInterval options for dynamic API key management#8817gabry-lab wants to merge 2 commits intoanomalyco:devfrom
Conversation
…API key management
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate Found:
Why they might be related: Both PRs address dynamic API key management. PR #8198 adds |
|
@thdxr please review this PR. this is a super important feature for users using litellm proxy with rotating api key expiratiion |
Co-authored-by: Nicolas Karolak <nikaro@users.noreply.github.com>
|
The so for long running sessions, this will provide stale sdk without calling the apiHelper again opencode/packages/opencode/src/provider/provider.ts Lines 1086 to 1089 in c130dd4 |
What do you think how we should resolve it? |
|
This would work well for our use case - we have a credential helper that issues short-lived tokens (55-minute validity for tokens), so the Our setup:
Happy to help with this. |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
This breaks in non-Linux environments, which don't sport an "sh" CLI tool. I think the tool of choice ("powershell", "cmd", "pwsh", etc.) might need to be an extra configuration value, or can be derived by inspecting the OS somehow. To fix it I changed apiKeyHelper to an array of strings and passed the whole array into |
Closes #1302