(providerID: string, modelID: string)
| 703 | ) as Record<string, ModelsDev.Provider> |
| 704 | |
| 705 | function loadFixture(providerID: string, modelID: string) { |
| 706 | const provider = MODELS_FIXTURE[providerID] |
| 707 | if (!provider) throw new Error(`Missing provider in fixture: ${providerID}`) |
| 708 | const model = provider.models[modelID] |
| 709 | if (!model) throw new Error(`Missing model in fixture: ${modelID}`) |
| 710 | return { provider, model } |
| 711 | } |
| 712 | |
| 713 | function configModel(model: ModelsDev.Model) { |
| 714 | return { |