feat(api): api update

This commit is contained in:
stainless-app[bot] 2025-07-16 15:07:34 +00:00
parent feff126f9b
commit 429d258bb5
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
configured_endpoints: 22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-d7030c3ddac483f2b8f15e10f2539f77fc440226bbf061526956288c0e0f19fb.yml
openapi_spec_hash: d10e62f301799142aeeb9378611f7424
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-8792f91dd070f7b4ee671fc86e8a03976dc7fb6ee49f8c99ad989e1597003774.yml
openapi_spec_hash: fe9dc3a074be560de0b97df9b5af2c1b
config_hash: 2a888f284ea87b2dfdb7e548938a55ea

View file

@ -68,8 +68,9 @@ type Config struct {
// Minimum log level to write to log files
LogLevel LogLevel `json:"log_level"`
// MCP (Model Context Protocol) server configurations
Mcp map[string]ConfigMcp `json:"mcp"`
Mode ConfigMode `json:"mode"`
Mcp map[string]ConfigMcp `json:"mcp"`
// Modes configuration, see https://opencode.ai/docs/modes
Mode ConfigMode `json:"mode"`
// Model to use in the format of provider/model, eg anthropic/claude-2
Model string `json:"model"`
// Custom provider configurations and model overrides
@ -305,6 +306,7 @@ func (r ConfigMcpType) IsKnown() bool {
return false
}
// Modes configuration, see https://opencode.ai/docs/modes
type ConfigMode struct {
Build Mode `json:"build"`
Plan Mode `json:"plan"`