We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6648b3 commit f4fb8eeCopy full SHA for f4fb8ee
src/api/providers/roo.ts
@@ -38,7 +38,13 @@ export class RooHandler extends BaseOpenAiCompatibleProvider<RooModelId> {
38
if (state.state === "active-session") {
39
this.client = new OpenAI({
40
baseURL: this.baseURL,
41
- apiKey: this.options.apiKey,
+ apiKey: CloudService.instance.authService?.getSessionToken() ?? "unauthenticated",
42
+ defaultHeaders: DEFAULT_HEADERS,
43
+ })
44
+ } else if (state.state === "logged-out") {
45
+ this.client = new OpenAI({
46
+ baseURL: this.baseURL,
47
+ apiKey: "unauthenticated",
48
defaultHeaders: DEFAULT_HEADERS,
49
})
50
}
0 commit comments