You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bb91b54
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/web/e2e/fixture-console.mjs
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -541,7 +541,6 @@ function providerProblem(harness, input) {
541
541
if(!["anthropic","responses","chat_completions"].includes(input.protocol))return"unsupported model provider protocol";
542
542
if(!input.api_key.trim()||Buffer.byteLength(input.api_key)>16384||/[\0\r\n]/.test(input.api_key))return"invalid model provider API key";
543
543
if((input.max_output_tokens??0)>(input.context_window??0))return"invalid model token limits";
544
-
if(harness==="mcode"&&!(input.context_window>0&&input.max_output_tokens>0))return"selected harness requires positive model context_window and max_output_tokens";
545
544
returnnull;
546
545
}
547
546
@@ -550,7 +549,7 @@ function providerProblem(harness, input) {
550
549
* (services/core/internal/api/harness_model_providers.go): the list
551
550
* reflects every write; an unknown harness or an unset provider is 404; PUT
552
551
* takes a JSON object of at most 32 KiB, is a full replacement that needs the
553
-
* key every time (mcode also both limits) and answers with the safe view;
552
+
* key every time and answers with the safe view;
554
553
* DELETE is 204 and safe to repeat. A disabled harness may still be configured.
Copy file name to clipboardExpand all lines: contracts/agents-api/core-errors.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,15 +61,15 @@ Each code returns HTTP 400 with `type: "invalid_request_error"`. A missing, malf
61
61
|`model_provider_base_url_invalid`|`base_url`| omitted | Requires HTTPS without credentials, query or fragment |
62
62
|`model_provider_protocol_unsupported`|`protocol`|`harness` and `allowed_protocols`, from the build's adapter catalog | The protocol is unknown or unsupported by the selected Harness |
63
63
|`model_provider_api_key_invalid`|`api_key`|`max_length`: 16384 | The key is empty, too long or contains a prohibited character |
64
-
|`model_provider_token_limits_invalid`|`context_window` or `max_output_tokens`| omitted |Limits are invalid, or the Harness requires positive limits that are missing|
64
+
|`model_provider_token_limits_invalid`|`context_window` or `max_output_tokens`| omitted |A limit is negative, or `max_output_tokens` exceeds `context_window` (0 when omitted)|
65
65
|`model_configuration_model_invalid`|`model`| omitted | The deployment default's model is not a nonempty model identifier |
66
66
|`harness_config_invalid`|`harness_config`| omitted | The deployment default's native parameters are unsupported or invalid |
67
67
|`invalid_sandbox_configuration`|`resources.cpus`|`min`: 1, `max`: 255 | The CPU count is outside the supported bounds |
68
68
|`invalid_sandbox_configuration`|`resources.memory_mib`|`min`: 512, `max`: 1048576 | Memory is outside the supported bounds |
69
69
|`invalid_sandbox_configuration`|`resources.root_disk_mib` or `resources.environment_disk_mib`|`min`: 1024 for microsandbox; `min`: 0, `max`: 0 for Docker and E2B | Disk capacity is missing or unsupported by the provider |
70
70
|`invalid_sandbox_configuration`|`runtime`| omitted | The Runtime release is missing, mutable, invalid or not allowed for E2B |
71
71
72
-
Bounds are validation constants, never submitted values. Node names are limited in bytes; Project and key names in trimmed Unicode characters without control characters. Only the first failure is reported, in this order: model provider URL, protocol, key, general limits, the Harness's protocol, then the Harness's required limits; sandbox resources CPU, memory, disk, then Runtime. Model-provider field errors inside a `model_provider` object keep that object's field as `param`. An unknown sandbox provider returns an error without these fields.
72
+
Bounds are validation constants, never submitted values. Node names are limited in bytes; Project and key names in trimmed Unicode characters without control characters. Only the first failure is reported, in this order: model provider URL, protocol, key, limits, then the Harness's protocol; sandbox resources CPU, memory, disk, then Runtime. Model-provider field errors inside a `model_provider` object keep that object's field as `param`. An unknown sandbox provider returns an error without these fields.
Copy file name to clipboardExpand all lines: docs/api/public-agent-api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ Core runs several Harnesses and accepts your own model access. Those settings ar
145
145
| Field | Where | Value |
146
146
| --- | --- | --- |
147
147
|`harness`| Agent, or a Session's inline `agent`|`codex`, `claude_sdk` or `mcode`|
148
-
|`model_provider`| Agent, or Session creation (top level) |`protocol`, `base_url`, `api_key`, and for `mcode` also`context_window` and `max_output_tokens`. The protocol must be one of the Harness's native protocols |
148
+
|`model_provider`| Agent, or Session creation (top level) |`protocol`, `base_url`, `api_key`, and optionally`context_window` and `max_output_tokens`. The protocol must be one of the Harness's native protocols |
149
149
|`harness_config`| Agent, inline `agent`, or Session creation (top level, wins) | The Harness's native model parameters, such as Claude Code's `thinking`|
150
150
|`environment`|`openai_hosted` or `self_hosted` Session creation (top level) | Portable preparation: `environment_template_id`, `files`, `env`, `packages`, `setup_commands`, `skills`, `plugins`, `capability_directories`. A field may not also appear in `environment`; see [Environments](../../contracts/agents-api/environments.md#preparation-order)|
151
151
|`installation`| Read-only, on `self_hosted` Sessions | Short-lived install commands for your machine; see [Run self-hosted Sessions](../getting-started/self-hosted.md)|
Copy file name to clipboardExpand all lines: docs/getting-started/install.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ The installer selects no sandbox backend. [Choose a sandbox backend](./sandbox-b
83
83
Core-hosted Sessions that bring no model provider use their Harness's default model. See [default models](../configuration.md#default-models).
84
84
85
85
1. Open **Settings → Models and credentials**. Under **Default model configuration**, the Harness marked **Default** shows **Model provider not set**. It is Codex unless you changed `OAC_DEFAULT_HARNESS`; see [settings](../configuration.md#settings).
86
-
2. Choose **Set** and enter the model ID, the protocol, and the provider's base URL and API key. MiniMax Code also needs the context window and the maximum output tokens.
86
+
2. Choose **Set** and enter the model ID, the protocol, and the provider's base URL and API key.
0 commit comments