(provider: ModelsDev.Provider)
| 1101 | } |
| 1102 | |
| 1103 | export function fromModelsDevProvider(provider: ModelsDev.Provider): Info { |
| 1104 | return { |
| 1105 | id: provider.id, |
| 1106 | source: "custom", |
| 1107 | name: provider.name, |
| 1108 | env: provider.env ?? [], |
| 1109 | options: {}, |
| 1110 | models: mapValues(provider.models, (model) => fromModelsDevModel(provider, model)), |
| 1111 | } |
| 1112 | } |
| 1113 | |
| 1114 | const state = Instance.state(async () => { |
| 1115 | using _ = log.time("state") |
nothing calls this directly
no test coverage detected