-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix: Add 'roo' provider to checkExistKey function #7239
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,8 +5,8 @@ export function checkExistKey(config: ProviderSettings | undefined) { | |||||||||||
| return false | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| // Special case for human-relay, fake-ai, and claude-code providers which don't need any configuration. | ||||||||||||
| if (config.apiProvider && ["human-relay", "fake-ai", "claude-code"].includes(config.apiProvider)) { | ||||||||||||
| // Special case for human-relay, fake-ai, claude-code, and roo providers which don't need any configuration. | ||||||||||||
| if (config.apiProvider && ["human-relay", "fake-ai", "claude-code", "roo"].includes(config.apiProvider)) { | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be helpful to add test coverage for these special case providers? I noticed the test file doesn't include any tests verifying that 'roo' (and the other special providers) return true without requiring configuration.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider extracting this array as a constant like
Suggested change
|
||||||||||||
| return true | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
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.
The comment could be more specific about why these providers are special. Perhaps something like: "Special case for providers that use alternative authentication methods (session tokens, relay, etc.) instead of API keys"?