File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
packages/opencode/src/config Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,18 @@ export namespace Config {
169169 . describe ( "Modes configuration, see https://opencode.ai/docs/modes" ) ,
170170 provider : z
171171 . record (
172- ModelsDev . Provider . partial ( ) . extend ( {
173- models : z . record ( ModelsDev . Model . partial ( ) ) ,
174- options : z . record ( z . any ( ) ) . optional ( ) ,
175- } ) ,
172+ ModelsDev . Provider . partial ( )
173+ . extend ( {
174+ models : z . record ( ModelsDev . Model . partial ( ) ) ,
175+ options : z
176+ . object ( {
177+ apiKey : z . string ( ) . optional ( ) ,
178+ baseURL : z . string ( ) . optional ( ) ,
179+ } )
180+ . catchall ( z . any ( ) )
181+ . optional ( ) ,
182+ } )
183+ . strict ( ) ,
176184 )
177185 . optional ( )
178186 . describe ( "Custom provider configurations and model overrides" ) ,
You can’t perform that action at this time.
0 commit comments