summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-11 10:53:09 -0400
committerDax Raad <[email protected]>2025-08-11 10:54:14 -0400
commitc51a34bf4b81407fb80091166b89dbe654fb7c57 (patch)
treef9b7aec5eddd0efdb4eb9ca58bfc6534dcfba6c1
parente8d144d2a21f884483eb47713dd52a83df7c859e (diff)
downloadopencode-c51a34bf4b81407fb80091166b89dbe654fb7c57.tar.gz
opencode-c51a34bf4b81407fb80091166b89dbe654fb7c57.zip
make models key optional in config
-rw-r--r--packages/opencode/src/config/config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts
index 62f425cb5..0eaae2b79 100644
--- a/packages/opencode/src/config/config.ts
+++ b/packages/opencode/src/config/config.ts
@@ -294,7 +294,7 @@ export namespace Config {
.record(
ModelsDev.Provider.partial()
.extend({
- models: z.record(ModelsDev.Model.partial()),
+ models: z.record(ModelsDev.Model.partial()).optional(),
options: z
.object({
apiKey: z.string().optional(),