(provider: APIProvider)
| 23 | const MODEL_KEYS = Object.keys(ALL_MODEL_CONFIGS) as ModelKey[] |
| 24 | |
| 25 | function getBuiltinModelStrings(provider: APIProvider): ModelStrings { |
| 26 | const out = {} as ModelStrings |
| 27 | for (const key of MODEL_KEYS) { |
| 28 | out[key] = ALL_MODEL_CONFIGS[key][provider] |
| 29 | } |
| 30 | return out |
| 31 | } |
| 32 | |
| 33 | async function getBedrockModelStrings(): Promise<ModelStrings> { |
| 34 | const fallback = getBuiltinModelStrings('bedrock') |
no outgoing calls
no test coverage detected