mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: include schema in converted toml config
This commit is contained in:
parent
0b8f48f17f
commit
c57b52c300
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ export namespace Config {
|
|||
.then(async (mod) => {
|
||||
const { provider, model, ...rest } = mod.default
|
||||
if (provider && model) result.model = `${provider}/${model}`
|
||||
result["$schema"] = "https://opencode.ai/config.json"
|
||||
result = mergeDeep(result, rest)
|
||||
await Bun.write(
|
||||
path.join(Global.Path.config, "config.json"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue