feat(hephaestus): support custom OpenAI-compatible providers#2128
Closed
imwxc wants to merge 2 commits intocode-yeongyu:devfrom
Closed
feat(hephaestus): support custom OpenAI-compatible providers#2128imwxc wants to merge 2 commits intocode-yeongyu:devfrom
imwxc wants to merge 2 commits intocode-yeongyu:devfrom
Conversation
Allow users to configure Hephaestus with any OpenAI-compatible provider via oh-my-opencode.json. The requiresProvider restriction is removed to enable custom model configurations while maintaining GPT as the default. Users can now use models like DeepSeek R1 or other thinking-capable models by setting agents.hephaestus.model and allow_non_gpt_model: true. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Contributor
|
All contributors have signed the CLA. Thank you! ✅ |
There was a problem hiding this comment.
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: The changes safely relax provider restrictions for Hephaestus and implement silent opt-in for non-GPT models as requested, with appropriate test updates and no detected side effects.
…odel When allow_non_gpt_model is set to true, non-GPT models are allowed but a warning toast is still shown to remind users that Hephaestus is optimized for GPT models. The hook only blocks and switches to Sisyphus when allow_non_gpt_model is not configured. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
d0cd311 to
06e846a
Compare
Author
|
Closing this PR. Will create an issue to request this feature instead, as it needs more discussion and potentially different implementation approach. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
requiresProviderrestriction from Hephaestus to support custom OpenAI-compatible providersoh-my-opencode.jsonallow_non_gpt_model: trueis set, a warning toast is shown but the agent is not blockedChanges
1. Remove Provider Restriction (
src/shared/model-requirements.ts)requiresProvider: ["openai", "opencode"]from HephaestusfallbackChain2. Hook Behavior (
src/hooks/no-hephaestus-non-gpt/hook.ts)allow_non_gpt_model: true: Show warning toast but allow the model to proceedUsage Example
Users can now configure Hephaestus with custom thinking-capable models:
{ "agents": { "hephaestus": { "model": "custom-provider/thinking-model-id", "reasoningEffort": "high", "allow_non_gpt_model": true } } }Testing
allow_non_gpt_model: trueRelated Issues
Ultraworked with Sisyphus