summaryrefslogtreecommitdiffhomepage
path: root/cmd
AgeCommit message (Collapse)Author
2025-05-01feat: lsp discoveryadamdottv
2025-04-30feat: custom themesadamdottv
2025-04-30feat: tron themeadamdottv
2025-04-30feat: tokyonight themeadamdottv
2025-04-30feat: dracula themeadamdottv
2025-04-30feat: opencode theme (default)adamdottv
2025-04-30feat: onedark themeadamdottv
2025-04-30feat: flexoki themeadamdottv
2025-04-30feat: themesadamdottv
2025-04-30fix: allow text selection (#127)Adam
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: add azure openai models (#74)YJG
2025-04-27feat: configure context paths (#86)Garrett Ladley
2025-04-24change package nameKujtim Hoxha
2025-04-24update mainter emailKujtim Hoxha
2025-04-21small thingsKujtim Hoxha
2025-04-21add descriptionKujtim Hoxha
2025-04-21config validationKujtim Hoxha
2025-04-21fix the memory bugKujtim Hoxha
2025-04-21rename to opencodeKujtim Hoxha
2025-04-21reimplement agent,provider and add file historyKujtim Hoxha
2025-04-21cleanup diff, cleanup agentKujtim Hoxha
2025-04-21cleanup app, config and rootKujtim Hoxha
2025-04-21add initial git supportKujtim Hoxha
2025-04-12refactor: use context for automatic lsp process cleanupNacho Vazquez
2025-04-10fix logs and add cancellationKujtim Hoxha
2025-04-09finish logs pageKujtim Hoxha
2025-04-08Merge pull request #22 from adamdottv/adam/retriesKujtim Hoxha
fix(anthropic): better 429/529 handling
2025-04-08structure tools the sameKujtim Hoxha
- add some tests - fix some tests - change how we handle permissions
2025-04-07improve status message handlingKujtim Hoxha
2025-04-07remove test codeKujtim Hoxha
2025-04-04Improve Sourcegraph tool with context window and fix diagnosticsKujtim Hoxha
- Add context_window parameter to control code context display - Fix LSP diagnostics notification handling with proper async waiting - Switch to keyword search pattern for better results - Add Sourcegraph tool to task agent 🤖 Generated with termai Co-Authored-By: termai <[email protected]>
2025-04-03add initial lsp supportKujtim Hoxha
2025-04-01rework llmKujtim Hoxha
2025-03-26additional toolsKujtim Hoxha
2025-03-24initial working agentKujtim Hoxha
2025-03-23initial agent setupKujtim Hoxha
2025-03-23add initial stuffKujtim Hoxha
2025-03-23add helpKujtim Hoxha
2025-03-21initialKujtim Hoxha