Commit graph

123 commits

Author SHA1 Message Date
adamdottv
014400465b
feat: openai responses api & codex-mini-latest 2025-05-16 15:59:54 -05:00
Ed Zynda
4a444e9c9b
feat: Make shell configurable via config file (#23) 2025-05-16 06:27:28 -05:00
adamdottv
b112216241
fix: build 2025-05-15 13:36:58 -05:00
mineo
87237b6462
feat: support VertexAI provider (#153)
* support: vertexai

fix

fix

set default for vertexai

added comment

fix

fix

* create schema

* fix README.md

* fix order

* added pupularity

* set tools if tools is exists

restore commentout

* fix comment

* set summarizer model
2025-05-15 13:35:06 -05:00
adamdottv
a65e593ab4
feat: batch tool 2025-05-15 12:44:16 -05:00
adamdottv
ddbb217d0d
feat: better status bar 2025-05-15 12:04:15 -05:00
Adictya
3ee213081e fix(complete-module): logging 2025-05-15 08:29:54 -05:00
Adictya
15bf40bc10 feat(complete-module): add completions logic, dialog and providers 2025-05-15 08:29:54 -05:00
adamdottv
c8f8d67a88
feat: codeAction tool 2025-05-14 14:57:47 -05:00
adamdottv
5ea989fb74
feat: docSymbols and workspaceSymbols tools 2025-05-14 14:40:45 -05:00
adamdottv
45c778b90d
feat: definition and references tools 2025-05-14 14:25:15 -05:00
adamdottv
4c998d4f4f
chore: remove sourcegraph tool 2025-05-14 10:42:16 -05:00
adamdottv
01b6bf5bb7
chore: refactor db 2025-05-13 13:08:43 -05:00
adamdottv
674797bd48
chore: refactoring 2025-05-13 11:07:34 -05:00
adamdottv
1f9610e266
chore: refactoring 2025-05-13 10:45:58 -05:00
adamdottv
2391e338b4
chore: rename 2025-05-13 10:02:39 -05:00
adamdottv
0c21ca5318
chore: cleanup 2025-05-13 06:51:28 -05:00
adamdottv
d941be3f1f
chore: refactor agent.go 2025-05-12 14:43:12 -05:00
adamdottv
36e5ae804e
chore: rename coder -> primary 2025-05-12 14:32:27 -05:00
adamdottv
5af3c05d41
chore: cleanup 2025-05-12 10:53:13 -05:00
adamdottv
8cbfc581b5
chore: cleanup 2025-05-12 10:45:03 -05:00
mineo
f92b2b76dc
replace github.com/google/generative-ai-go with github.com/googleapis/go-genai (#138)
* replace to github.com/googleapis/go-genai

* fix history logic

* small fixes

---------

Co-authored-by: Kujtim Hoxha <kujtimii.h@gmail.com>
2025-05-12 09:56:30 -05:00
adamdottv
dfe5fd8d97
wip: refactoring 2025-05-12 09:44:56 -05:00
adamdottv
f100777199
wip: logging improvements 2025-05-09 13:37:13 -05:00
adamdottv
f41b7bbd0a
chore: refactoring status updates 2025-05-08 12:03:59 -05:00
adamdottv
051d7d7936
chore: logging token usage 2025-05-06 14:40:00 -05:00
adamdottv
b638dafe5f
feat: better logs page 2025-05-06 14:22:37 -05:00
adamdottv
e387b1f16c
fix: openrouter require_parameters 2025-05-06 11:17:32 -05:00
adamdottv
71a68dd56d
feat: add qwen3 models 2025-05-06 10:19:07 -05:00
adamdottv
3ee8ebd3d3
fix: auto-compact logic 2025-05-06 10:03:21 -05:00
adamdottv
afcdabd095
fix: anthropic non-empty blocks 2025-05-05 12:00:09 -05:00
adamdottv
cdd906e32e
fix: bedrock supports attachments 2025-05-02 15:35:24 -05:00
phantomreactor
ff0ef3bb43
feat: add support for images 2025-05-02 15:29:46 -05:00
adamdottv
0095832be3 chore: cleanup and logging 2025-05-02 15:24:47 -05:00
adamdottv
406ccf9b87 fix: diagnostics tool init 2025-05-02 15:24:47 -05:00
adamdottv
f90d6238ed fix: bedrock context window 2025-05-02 15:24:47 -05:00
adamdottv
f004a0b8c3 fix: anthropic non-empty blocks 2025-05-02 15:24:47 -05:00
adamdottv
49423da081 feat: compact command with auto-compact 2025-05-02 15:24:47 -05:00
adamdottv
364cf5b429 feat: write to context.md by default 2025-05-02 15:24:47 -05:00
Kujtim Hoxha
a61b2026eb
add xai support (#135) 2025-05-01 11:08:26 -05:00
Aiden Cline
69ade34c2c
fix: tweak the logic in config to ensure that env vs file configurations merge properly (#115) 2025-05-01 11:08:17 -05:00
Garrett Ladley
fbca5441f6
feat: test for getContextFromPaths (#105)
* feat: test for getContextFromPaths

* fix: use testify
2025-05-01 11:08:06 -05:00
adamdottv
f2b36b9234
fix: remove lsp tool 2025-05-01 07:28:37 -05:00
adamdottv
3e30607a6d
fix: minor prompt fix 2025-05-01 06:35:47 -05:00
adamdottv
d08e58279d
feat: lsp discovery 2025-05-01 06:26:20 -05:00
Isaac Scarrott
98e2910e82
feat: Add support for OpenRouter (#92)
* Add support for OpenRouter as a new model provider

- Introduced `ProviderOpenRouter` in the `models` package.
- Added OpenRouter-specific models, including `GPT41`, `GPT41Mini`, `GPT4o`, and others, with their configurations and costs.
- Updated `generateSchema` to include OpenRouter as a provider.
- Added OpenRouter-specific environment variable handling (`OPENROUTER_API_KEY`) in `config.go`.
- Implemented default model settings for OpenRouter agents in `setDefaultModelForAgent`.
- Updated `getProviderAPIKey` to retrieve the OpenRouter API key.
- Extended `SupportedModels` to include OpenRouter models.
- Added OpenRouter client initialization in the `provider` package.
- Modified `processGeneration` to handle `FinishReasonUnknown` in addition to `FinishReasonToolUse`.

* [feature/openrouter-provider] Add new models and provider to schema

- Added "deepseek-chat-free" and "deepseek-r1-free" to the list of supported models in `opencode-schema.json`.

* [feature/openrouter-provider] Add OpenRouter provider support and integrate new models

- Updated README.md to include OpenRouter as a supported provider and its configuration details.
- Added `OPENROUTER_API_KEY` to environment variable configuration.
- Introduced OpenRouter-specific models in `internal/llm/models/openrouter.go` with mappings to existing cost and token configurations.
- Updated `internal/config/config.go` to set default models for OpenRouter agents.
- Extended `opencode-schema.json` to include OpenRouter models in the schema definitions.
- Refactored model IDs and names to align with OpenRouter naming conventions.

* [feature/openrouter-provider] Refactor finish reason handling and tool call logic in agent and OpenAI provider

- Simplified finish reason check in `agent.go` by removing redundant variable assignment.
- Updated `openai.go` to override the finish reason to `FinishReasonToolUse` when tool calls are present.
- Ensured consistent finish reason handling in both `send` and `stream` methods of the OpenAI provider.

[feature/openrouter-provider] Refactor finish reason handling and tool call logic in agent and OpenAI provider

- Simplified finish reason check in `agent.go` by removing redundant variable assignment.
- Updated `openai.go` to override the finish reason to `FinishReasonToolUse` when tool calls are present.
- Ensured consistent finish reason handling in both `send` and `stream` methods of the OpenAI provider.

* **[feature/openrouter-provider] Add support for custom headers in OpenAI client configuration**

- Introduced a new `extraHeaders` field in the `openaiOptions` struct to allow specifying additional HTTP headers.
- Added logic in `newOpenAIClient` to apply `extraHeaders` to the OpenAI client configuration.
- Implemented a new option function `WithOpenAIExtraHeaders` to set custom headers in `openaiOptions`.
- Updated the OpenRouter provider configuration in `NewProvider` to include default headers (`HTTP-Referer` and `X-Title`) for OpenRouter API requests.

* Update OpenRouter model config and remove unsupported models

* [feature/openrouter-provider] Update OpenRouter models and default configurations

- Added new OpenRouter models: `claude-3.5-sonnet`, `claude-3-haiku`, `claude-3.7-sonnet`, `claude-3.5-haiku`, and `claude-3-opus` in `openrouter.go`.
- Updated default agent models in `config.go`:
  - `agents.coder.model` now uses `claude-3.7-sonnet`.
  - `agents.task.model` now uses `claude-3.7-sonnet`.
  - `agents.title.model` now uses `claude-3.5-haiku`.
- Updated `opencode-schema.json` to include the new models in the allowed list for schema validation.
- Adjusted logic in `setDefaultModelForAgent` to reflect the new default models.

* [feature/openrouter-provider] Remove unused ProviderEvent emission in stream function

The changes remove the emission of a `ProviderEvent` with type `EventContentStop` in the `stream` function of the `openaiClient` implementation. This event was sent upon successful stream completion but is no longer used.
2025-04-29 13:56:49 +02:00
Aiden Cline
b3c0285db3
feat: model selection for given provider (#57)
* feat: model selection for given provider

* tweak: adjust cfg validation func, remove duplicated logic, consolidate agent updating into agent.go

* tweak: make the model dialog scrollable, adjust padding slightly for modal"

* feat: add provider selection, add hints, simplify some logic, add horizontal scrolling support, additional scroll indicators"

* remove nav help

* update docs

* increase number of visible models, make horizontal scroll "wrap"

* add provider popularity rankings
2025-04-28 19:25:06 +02:00
YJG
805aeff83c
feat: add azure openai models (#74) 2025-04-28 15:42:57 +02:00
Kujtim Hoxha
bce2ec5c10 fix duplicate context 2025-04-27 20:43:27 +02:00
Kujtim Hoxha
292e9d90ca remove unnecessary var 2025-04-27 20:34:20 +02:00