Commit graph

255 commits

Author SHA1 Message Date
Aiden Cline
025a6392ce
fix: default tool call streaming to false for google vertex (#24573) 2026-04-26 23:42:23 -05:00
Aiden Cline
e7053c41f4
fix: bump openrouter sdk version to resolve deepseek reasoning issue (bug was in sdk pkg) (#24435) 2026-04-26 00:05:16 -05:00
Dax Raad
1a734adb4d core: consolidate shared infrastructure into core package
Moves effect logging, observability, runtime utilities, flags, installation
version info, and process utilities from opencode to core package. This
enables better code sharing across packages and establishes core as the
single source of truth for foundational utilities.

All internal imports updated to use @opencode-ai/core paths for consistency.
2026-04-25 13:30:37 -04:00
Aiden Cline
86715fecc4
fix: ensure assistant messages always have reasoning on them for deepseek (#24180) 2026-04-24 11:10:47 -04:00
Aiden Cline
f8e939d96f
fix: support max for deepseek (#24163) 2026-04-24 08:48:52 -04:00
黑墨水鱼
923af96d26
fix: preserve empty reasoning_content for DeepSeek V4 thinking mode (#24146)
Co-authored-by: Simon Klee <hello@simonklee.dk>
2026-04-24 08:42:57 -04:00
Aiden Cline
a882e958b3
fix: deepseek variants (#24157) 2026-04-24 08:34:48 -04:00
Ruben De Smet
1a20703469
feat: add Mistral Small reasoning variant support (issue #19479) (#23735) 2026-04-21 16:45:06 -04:00
Aiden Cline
58232d896e
fix: dont show variants for kimi models that dont support them (#23696) 2026-04-21 15:33:35 -04:00
Aiden Cline
e2e7a8d722
fix: ensure display: summarized is sent by default for bedrock (#23343) 2026-04-18 16:04:00 -05:00
Ismail Ghallou
3fe602cda3
feat: add LLM Gateway provider (#7847)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-04-17 10:29:31 -05:00
OpeOginni
8fbbca5f4b
fix(opencode): rescrict github copilot opus 4.7 variants to "medium" (#23097) 2026-04-17 10:25:12 -05:00
Aiden Cline
cb18f2ef40
fix: ensure azure sets prompt cache key by default (#22957) 2026-04-16 17:45:35 -05:00
thakrarsagar
610c036ef1
fix(opencode): use low reasoning effort for GitHub Copilot gpt-5 models (#22824)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-04-16 15:44:58 -05:00
Kit Langton
2fe9d94470
fix: remove 8 more unnecessary as any casts in opencode core (#22877) 2026-04-16 19:27:53 +00:00
Aiden Cline
47e0e2342c
tweak: set display 'summarized' by default for opus 4.7 thorugh messages api (#22873) 2026-04-16 14:12:43 -05:00
Aiden Cline
c5deeee8c7
fix: ensure azure has store = true by default (#22764) 2026-04-16 12:19:01 -05:00
Graham Campbell
378c05f202
feat: Add support for claude opus 4.7 xhigh adaptive reasoning effort (#22833)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-04-16 10:57:36 -05:00
opencode-agent[bot]
150ab07a83 chore: generate 2026-04-16 05:03:50 +00:00
Kit Langton
6b20838981
feat: unwrap provider namespaces to flat exports + barrel (#22760) 2026-04-16 05:02:50 +00:00
Kit Langton
8aa0f9fe95
feat: enable type-aware no-base-to-string rule, fix 56 violations (#22750) 2026-04-16 03:50:47 +00:00
Kit Langton
0e20382396
fix: resolve circular sibling imports causing runtime ReferenceError (#22752) 2026-04-15 23:41:34 -04:00
Kit Langton
d6b14e2467
fix: prefix 32 unused parameters with underscore (#22694) 2026-04-15 21:56:23 -04:00
Kit Langton
1d81335ab5
feat: unwrap Provider namespace + improved automation script (#22690) 2026-04-15 21:44:46 -04:00
Aiden Cline
348a84969d
fix: ensure tool_use is always followed by tool_result (#22646)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-04-15 14:56:45 -05:00
Nazar H.
c2403d0f15
fix(provider): guard reasoningSummary injection for @ai-sdk/openai-compatible providers (#22352)
Co-authored-by: Nazar Hnatyshen <nazar.hnatyshen@atolls.com>
2026-04-13 20:20:06 -05:00
Aiden Cline
0b4fe14b0a
fix: forgot to put alibaba case in last commit (#22249) 2026-04-13 00:39:12 -05:00
Aiden Cline
7230cd2683
feat: add alibaba pkg and cache support (#22248) 2026-04-13 00:08:07 -05:00
ryan.h.park
63035f977f
fix: enable thinking for zhipuai-coding-plan & prevent Korean IME truncation (#22041)
Co-authored-by: claudianus <claudianus@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-04-11 15:51:49 -05:00
Aiden Cline
00cb8839ae
fix: dont show invalid variants for BP (#21555) 2026-04-08 14:52:34 -05:00
Aiden Cline
5a6d10cd53
tweak: ensure copilot anthropic models have same reasoning effort model as copilot cli, also fix qwen incorrectly having variants (#21212) 2026-04-06 18:12:43 +00:00
Corné Steenhuis
9965d385de
fix: pass both 'openai' and 'azure' providerOptions keys for @ai-sdk/azure (#20272)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-04-06 02:34:53 +00:00
Major Hayden
26cc924ea2
feat: enable prompt caching and cache token tracking for google-vertex-anthropic (#20266)
Signed-off-by: Major Hayden <major@mhtx.net>
2026-03-31 15:16:14 -05:00
Aiden Cline
4dd866d5c4
fix: rm exclusion of ai-sdk/azure in transform.ts, when we migrated to v6 the ai sdk changed the key for ai-sdk/azure so the exclusion is no longer needed (#20326) 2026-03-31 14:57:15 -05:00
Aiden Cline
c33d9996f0
feat: AI SDK v6 support (#18433) 2026-03-27 15:24:30 -05:00
opencode-agent[bot]
e837dcc1c5 chore: generate 2026-03-24 18:43:20 +00:00
Nicholas Hansen
024979f3fd
feat(bedrock): Add token caching for any amazon-bedrock provider (#18959) 2026-03-24 13:42:20 -05:00
Protocol Zero
cc818f8032
fix(provider): only set thinkingConfig for models with reasoning capability (#18283) 2026-03-21 11:57:52 -05:00
Tom Ryder
4a2a046d79
fix: filter empty content blocks for Bedrock provider (#14586) 2026-03-12 22:13:09 -05:00
Jérôme Benoit
4dce485854
fix(opencode): add thinking variants support for SAP AI provider (#14958)
Co-authored-by: Test <test@test.com>
Co-authored-by: Stephen Collings <stevoland@gmail.com>
2026-03-10 10:05:45 -05:00
Jack
5838b58913
add copilot gpt-5.4 xhigh support (#16294) 2026-03-09 22:07:12 +08:00
opencode-agent[bot]
9f150b0776 chore: generate 2026-03-03 04:41:52 +00:00
Shoubhit Dash
7e3e85ba59
fix(opencode): avoid gemini combiner schema sibling injection (#15318) 2026-03-03 10:11:05 +05:30
opencode-agent[bot]
686dd330a0 chore: generate 2026-02-19 22:19:09 +00:00
tctev
193013a44d
feat(opencode): support adaptive thinking for claude sonnet 4.6 (#14283)
Co-authored-by: tctev <224793535+tctev@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-02-19 16:17:57 -06:00
Aiden Cline
7e35d0c610
core: bump ai sdk packages for google, google vertex, anthropic, bedrock, and provider utils (#14318) 2026-02-19 12:35:51 -06:00
Aiden Cline
5364ab74a2
tweak: add support for medium reasoning w/ gemini 3.1 (#14316) 2026-02-19 12:00:56 -06:00
dpuyosa
afd0716cbd
feat(opencode): Add Venice support in temperature, topP, topK and smallOption (#13553) 2026-02-15 22:24:24 -06:00
Aiden Cline
839c5cda12
fix: ensure anthropic models on OR also have variant support (#13498) 2026-02-14 14:30:07 -06:00
Aiden Cline
933a491ade
fix: ensure vercel variants pass amazon models under bedrock key (#13631) 2026-02-14 13:18:52 -06:00
Aiden Cline
759ec104b6
fix vercel gateway variants (#13541)
Co-authored-by: Benjamin Woodruff <github@benjam.info>"
2026-02-14 12:32:29 -06:00
Aiden Cline
0d90a22f90
feat: update some ai sdk packages and uuse adaptive reasoning for opus 4.6 on vertex/bedrock/anthropic (#13439) 2026-02-13 00:56:11 -06:00
dpuyosa
bf5a01edd9
feat(opencode): Venice Add automatic variant generation for Venice models (#12106) 2026-02-11 20:21:29 -06:00
Aiden Cline
0fd6f365be
fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact (#12924)
Co-authored-by: James Lal <james@littlebearlabs.io>
2026-02-10 19:55:22 -06:00
Aiden Cline
99ea1351ce
tweak: add new ContextOverflowError type (#12777) 2026-02-08 23:54:01 -06:00
fgonzalezurriola
d40dffb854
fix(provider): remove obsolete copilot model enablement instructions (#12739) 2026-02-08 22:43:52 -06:00
AdJIa
0cd52f830c
fix: enable thinking for all reasoning models on alibaba-cn (DashScope) (#12772)
Co-authored-by: lujia <lujiax@zmn.cn>
2026-02-08 22:42:23 -06:00
Ivan Gonzalez
a25cd2da72
feat(opencode): use reasoning summary auto for gpt-5 models that are not chat (#12502) 2026-02-06 13:19:14 -06:00
Aiden Cline
2f78705f6e
tweak: update transforms for gpt-5.3 (#12325) 2026-02-05 12:49:40 -06:00
Tom
d1686661c0
fix: ensure kimi-for-coding plan has thinking on by default for k2p5 (#12147) 2026-02-04 12:39:22 -06:00
Aiden Cline
b7b734f51f
fix: ensure mcp tools are sanitized (#11984) 2026-02-03 12:22:00 -06:00
neavo
54e14c1a17
fix: exclude k2p5 from reasoning variants (#11918) 2026-02-03 09:26:37 -06:00
Muhammad Mugni Hadi
3741516fe3
fix: handle nested array items for Gemini schema validation (#11952) 2026-02-03 09:24:52 -06:00
Kiyoung Chang
3adeed8f97
fix(provider): strip properties/required from non-object types in Gemini schema (#11888) 2026-02-02 23:13:24 -06:00
Mathias Beugnon
bd9d7b3221
fix: session title generation with OpenAI models. (#11678) 2026-02-01 23:10:53 -06:00
Aiden Cline
f6948d0ffa
fix: variant logic for anthropic models through openai compat endpoint (#11665) 2026-02-01 14:50:49 -06:00
Rohan Godha
ca5e85d6ea
fix: prompt caching for opus on bedrock (#11664) 2026-02-01 14:42:42 -06:00
Jérôme Benoit
feca42b025
feat(opencode): add reasoning variants support for SAP AI Core (#8753)
Co-authored-by: Github Action <action@github.com>
2026-01-31 09:26:23 -06:00
Aiden Cline
95bf01a757
fix: ensure the mistral ordering fixes also apply to devstral (#11412) 2026-01-30 23:16:07 -06:00
Steffen Deusch
d9f18e4006
feat(opencode): add copilot specific provider to properly handle copilot reasoning tokens (#8900)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-01-30 19:53:22 -06:00
opencode-agent[bot]
252b2c450d chore: generate 2026-01-31 01:32:46 +00:00
Cesar Garcia
0c32afbc35
fix(provider): use snake_case for thinking param with OpenAI-compatible APIs (#10109) 2026-01-31 01:32:02 +00:00
Ryan Vogel
4a56491e42 fix(provider): exclude chat models from textVerbosity setting (#11363) 2026-01-30 21:06:48 +00:00
Aiden Cline
301895c7f7 fix: ensure kimi k2.5 from fireworks ai and kimi for coding providers properly set temperature 2026-01-29 10:30:22 -06:00
Aiden Cline
0fabdccf11 fix: ensure that kimi doesnt have fake variants available 2026-01-28 23:40:44 -06:00
Aiden Cline
29ea9fcf25 fix: ensure variants for copilot models work w/ maxTokens being set 2026-01-28 21:55:50 -06:00
Frank
df8b23db9e Revert "Set temperature for kimi k2.5"
This reverts commit bb63d16fa8.
2026-01-27 14:48:08 -05:00
Frank
bb63d16fa8 Set temperature for kimi k2.5 2026-01-27 14:13:21 -05:00
Aiden Cline
32ce0f4b0d tweak: add recommended topP/temp for kimi k2.5 2026-01-27 12:43:30 -05:00
Michael Yochpaz
0bc4a43320
fix(provider): enable thinking for google-vertex-anthropic models (#10442)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-01-24 23:42:29 -05:00
zerone0x
087d7da14d
fix(provider): deep merge providerOptions in applyCaching (#10323)
Co-authored-by: Claude <noreply@anthropic.com>
2026-01-24 13:07:04 -05:00
Arthur
cf7e10c4e8
fix: add xhigh reasoning effort for GitHub Copilot GPT-5 models (#10092)
Co-authored-by: Arthur Freitas Ramos <arthur@MacBook-Air-de-Arthur.local>
2026-01-24 00:09:47 -05:00
zerone0x
31094cd5a4
fix(provider): add thinking presets for Google Vertex Anthropic (#9953)
Co-authored-by: Claude <noreply@anthropic.com>
2026-01-22 19:44:18 -06:00
dpuyosa
65e267ed3a
feat: Add promptCacheKey for Venice provider (#9915) 2026-01-21 20:28:04 -06:00
Aiden Cline
6f7a1c69a5 tweak: adjust textVerbosity and reasoningEffort defaults to better match codex cli 2026-01-21 13:23:04 -06:00
Stephen Collings
0e1a8a1839
fix: Claude w/bedrock custom inference profile - caching support (#9838)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-01-21 10:42:13 -06:00
Aiden Cline
3fd0043d19 chore: handle fields other than reasoning_content in interleaved block 2026-01-19 12:18:17 -06:00
Aiden Cline
4a7809f600 add proper variant support to copilot 2026-01-19 00:18:42 -06:00
Christopher Tso
fc6c9cbbd2
fix(github-copilot): auto-route GPT-5+ models to Responses API (#5877)
Co-authored-by: Claude <noreply@anthropic.com>
2026-01-18 23:30:28 -06:00
Aiden Cline
d841e70d26 fix: bad variants for grok models 2026-01-18 14:21:14 -06:00
Aiden Cline
ea13b6e8aa test: add azure test case 2026-01-17 00:35:49 -06:00
Aiden Cline
7c3eeeb0fa
fix: gpt id stuff fr fr this time :/ (#9006) 2026-01-16 22:09:36 -06:00
Aiden Cline
578239e0d0 chore: cleanup transform code a tad 2026-01-16 16:13:38 -06:00
Aiden Cline
14d1e20287
Revert "fix(app): support anthropic models on azure cognitive services" (#8966) 2026-01-16 15:25:23 -06:00
Unies Ananda Raja
b8e2895dfc
fix(app): support anthropic models on azure cognitive services (#8335) 2026-01-16 15:24:06 -06:00
Aiden Cline
40836e9683 fix: fix the itemId stripping logic, this time it should fix that id issue w/ gpt models fr 2026-01-16 11:34:45 -06:00
Aiden Cline
d47510785a strip itemIds in more cases 2026-01-15 18:00:58 -06:00
Aiden Cline
92931437c4
fix: codex id issue (#8605) 2026-01-15 01:31:50 -06:00
Aiden Cline
16cac69a72
Revert "feat: allow provider-level store option (#8000)" (#8613) 2026-01-15 00:45:03 -06:00
Call White
fcf2da9571
feat: allow provider-level store option (#8000) 2026-01-15 00:35:53 -06:00