summaryrefslogtreecommitdiffhomepage
path: root/internal/llm
AgeCommit message (Collapse)Author
2025-05-18Codex mini (#34)phantomreactor
2025-05-17fix: split out bedrock modelsPierre Berube
2025-05-16fix: Show correct file paths in permission window (#25)Ed Zynda
* Fix paths in permission window to show relative paths * Fix paths in permission window to show actual file paths
2025-05-16feat: Make shell configurable via config file (#23)Ed Zynda
2025-05-15fix: buildadamdottv
2025-05-15feat: support VertexAI provider (#153)mineo
* 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-15feat: batch tooladamdottv
2025-05-15feat: better status baradamdottv
2025-05-15fix(complete-module): loggingAdictya
2025-05-15feat(complete-module): add completions logic, dialog and providersAdictya
2025-05-14feat: codeAction tooladamdottv
2025-05-14feat: docSymbols and workspaceSymbols toolsadamdottv
2025-05-14feat: definition and references toolsadamdottv
2025-05-14chore: remove sourcegraph tooladamdottv
2025-05-13chore: refactor dbadamdottv
2025-05-13chore: refactoringadamdottv
2025-05-13chore: refactoringadamdottv
2025-05-13chore: renameadamdottv
2025-05-13chore: cleanupadamdottv
2025-05-12chore: refactor agent.goadamdottv
2025-05-12chore: rename coder -> primaryadamdottv
2025-05-12chore: cleanupadamdottv
2025-05-12chore: cleanupadamdottv
2025-05-12replace `github.com/google/generative-ai-go` with ↵mineo
`github.com/googleapis/go-genai` (#138) * replace to github.com/googleapis/go-genai * fix history logic * small fixes --------- Co-authored-by: Kujtim Hoxha <[email protected]>
2025-05-12wip: refactoringadamdottv
2025-05-09wip: logging improvementsadamdottv
2025-05-08chore: refactoring status updatesadamdottv
2025-05-06chore: logging token usageadamdottv
2025-05-06feat: better logs pageadamdottv
2025-05-06fix: openrouter require_parametersadamdottv
2025-05-06feat: add qwen3 modelsadamdottv
2025-05-06fix: auto-compact logicadamdottv
2025-05-05fix: anthropic non-empty blocksadamdottv
2025-05-02fix: bedrock supports attachmentsadamdottv
2025-05-02feat: add support for imagesphantomreactor
2025-05-02chore: cleanup and loggingadamdottv
2025-05-02fix: diagnostics tool initadamdottv
2025-05-02fix: bedrock context windowadamdottv
2025-05-02fix: anthropic non-empty blocksadamdottv
2025-05-02feat: compact command with auto-compactadamdottv
2025-05-02feat: write to context.md by defaultadamdottv
2025-05-01add xai support (#135)Kujtim Hoxha
2025-05-01fix: tweak the logic in config to ensure that env vs file configurations ↵Aiden Cline
merge properly (#115)
2025-05-01feat: test for getContextFromPaths (#105)Garrett Ladley
* feat: test for getContextFromPaths * fix: use testify
2025-05-01fix: remove lsp tooladamdottv
2025-05-01fix: minor prompt fixadamdottv
2025-05-01feat: lsp discoveryadamdottv
2025-04-29feat: Add support for OpenRouter (#92)Isaac Scarrott
* 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-28feat: model selection for given provider (#57)Aiden Cline
* 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-28feat: add azure openai models (#74)YJG