File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -536,10 +536,16 @@ export const getModelId = (settings: ProviderSettings): string | undefined => {
536536 return modelIdKey ? settings [ modelIdKey ] : undefined
537537}
538538
539- export const modelIdKeysByProvider : Record <
540- Exclude < ProviderName , InternalProvider | CustomProvider | FauxProvider > ,
541- ModelIdKey
542- > = {
539+ /**
540+ * TypicalProvider
541+ */
542+
543+ export type TypicalProvider = Exclude < ProviderName , InternalProvider | CustomProvider | FauxProvider >
544+
545+ export const isTypicalProvider = ( key : unknown ) : key is TypicalProvider =>
546+ isProviderName ( key ) && ! isInternalProvider ( key ) && ! isCustomProvider ( key ) && ! isFauxProvider ( key )
547+
548+ export const modelIdKeysByProvider : Record < TypicalProvider , ModelIdKey > = {
543549 anthropic : "apiModelId" ,
544550 "claude-code" : "apiModelId" ,
545551 glama : "glamaModelId" ,
You can’t perform that action at this time.
0 commit comments