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
> **Notes on model config keys:**Config keys must match the snapshot model ID exactly (e.g. `writer.palmyra-x5-v1:0`) — the `us.` cross-region inference profile prefix is added automatically at runtime for supported models and regions. The `id` field is only needed if you want the key to differ from the API model ID.
114
+
>
115
+
> **`tool_call: false`:** Models marked with `tool_call: false` do not support tool use in streaming mode on Bedrock. This prevents opencode from sending tool definitions to those models.
116
+
>
117
+
> **`reasoning: false`:** Models marked with `reasoning: false` will have reasoning content stripped from message history before being sent to the model. Required for models like DeepSeek R1 on Bedrock that generate reasoning output but reject it as input in subsequent turns.
124
118
125
119
### 3. Shell alias
126
120
@@ -173,6 +167,9 @@ See [flexion/opencode#2](https://github.com/flexion/opencode/pull/2) for the ful
173
167
| Hide skill prompt text from chat UI |`packages/opencode/src/session/prompt.ts`| Marks skill template as `synthetic` so the full prompt is sent to the model but hidden from the user |
174
168
| Respect `tool_call: false` at runtime |`packages/opencode/src/session/llm.ts`| Gates tool resolution behind `capabilities.toolcall` — fixes failures on Bedrock models that don't support streaming + tool use |
175
169
| Re-sign macOS binaries after build |`packages/opencode/script/build.ts`| Strips Bun's embedded signature and applies a fresh ad-hoc one — fixes SIGKILL (exit 137) on Darwin 25+ where Bun's signature format is rejected |
170
+
| Add inference profile prefixes for palmyra and pixtral |`packages/opencode/src/provider/provider.ts`| Adds `us.` cross-region inference profile prefix for Writer Palmyra and Mistral Pixtral models in US regions |
171
+
| Strip reasoning from history for non-reasoning models |`packages/opencode/src/provider/transform.ts`| Removes reasoning content parts from assistant message history before sending to models with `reasoning: false` — fixes Bedrock rejections when switching from a reasoning model |
172
+
| Exclude palmyra from reasoning variant generation |`packages/opencode/src/provider/transform.ts`| Prevents unsupported `reasoningConfig` parameters from being sent to Writer Palmyra models |
176
173
| Local build & AWS Bedrock setup docs |`LOCAL_AWS_SETUP.md`| This file |
177
174
178
175
Full details and upstream tracking: [flexion/opencode#2](https://github.com/flexion/opencode/pull/2)
0 commit comments