mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
More progress
This commit is contained in:
parent
520dec0ce4
commit
dcbb6c994c
1 changed files with 10 additions and 4 deletions
|
|
@ -536,10 +536,16 @@ export const getModelId = (settings: ProviderSettings): string | undefined => {
|
|||
return modelIdKey ? settings[modelIdKey] : undefined
|
||||
}
|
||||
|
||||
export const modelIdKeysByProvider: Record<
|
||||
Exclude<ProviderName, InternalProvider | CustomProvider | FauxProvider>,
|
||||
ModelIdKey
|
||||
> = {
|
||||
/**
|
||||
* TypicalProvider
|
||||
*/
|
||||
|
||||
export type TypicalProvider = Exclude<ProviderName, InternalProvider | CustomProvider | FauxProvider>
|
||||
|
||||
export const isTypicalProvider = (key: unknown): key is TypicalProvider =>
|
||||
isProviderName(key) && !isInternalProvider(key) && !isCustomProvider(key) && !isFauxProvider(key)
|
||||
|
||||
export const modelIdKeysByProvider: Record<TypicalProvider, ModelIdKey> = {
|
||||
anthropic: "apiModelId",
|
||||
"claude-code": "apiModelId",
|
||||
glama: "glamaModelId",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue