mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Add openai compatible provider
This commit is contained in:
@@ -31,9 +31,13 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
||||
setState(message.state)
|
||||
const config = message.state?.apiConfiguration
|
||||
const hasKey = config
|
||||
? [config.apiKey, config.openRouterApiKey, config.awsRegion, config.vertexProjectId].some(
|
||||
(key) => key !== undefined
|
||||
)
|
||||
? [
|
||||
config.apiKey,
|
||||
config.openRouterApiKey,
|
||||
config.awsRegion,
|
||||
config.vertexProjectId,
|
||||
config.openAiApiKey,
|
||||
].some((key) => key !== undefined)
|
||||
: false
|
||||
setShowWelcome(!hasKey)
|
||||
setDidHydrateState(true)
|
||||
|
||||
Reference in New Issue
Block a user