diff options
| author | Dax Raad <[email protected]> | 2025-06-18 23:08:51 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-18 23:08:51 -0400 |
| commit | 1252b6516654ffb591fa24d78bf4ea8fabb838ef (patch) | |
| tree | 1a33c88f7d36eb502c4b04350d5ee9d9de2f4e69 /packages | |
| parent | 6840276dade2517d5a07910f2280e6f0658540a6 (diff) | |
| download | opencode-1252b6516654ffb591fa24d78bf4ea8fabb838ef.tar.gz opencode-1252b6516654ffb591fa24d78bf4ea8fabb838ef.zip | |
stop loading models.dev format from global config
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/provider/provider.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/opencode/src/provider/provider.ts b/packages/opencode/src/provider/provider.ts index 36f0600f1..5bea34687 100644 --- a/packages/opencode/src/provider/provider.ts +++ b/packages/opencode/src/provider/provider.ts @@ -115,32 +115,6 @@ export namespace Provider { } const configProviders = Object.entries(config.provider ?? {}) - for await (const providerPath of new Bun.Glob("*/provider.toml").scan({ - cwd: Global.Path.providers, - })) { - const [providerID] = providerPath.split("/") - const toml = await import( - path.join(Global.Path.providers, providerPath), - { - with: { - type: "toml", - }, - } - ).then((mod) => mod.default) - toml.models = {} - const modelsPath = path.join(Global.Path.providers, providerID, "models") - for await (const modelPath of new Bun.Glob("**/*.toml").scan({ - cwd: modelsPath, - })) { - const modelID = modelPath.slice(0, -5) - toml.models[modelID] = await import(path.join(modelsPath, modelPath), { - with: { - type: "toml", - }, - }) - } - configProviders.unshift([providerID, toml]) - } for (const [providerID, provider] of configProviders) { const existing = database[providerID] |
