feat(settings): add generic OpenAI provider#154
Merged
Conversation
Member
|
Thanks for the contribution! This was a missing piece — we had no way for users to configure standard OpenAI API keys through the settings UI. Merged! |
3 tasks
buremba
added a commit
that referenced
this pull request
May 17, 2026
Pulls in #823 (revert goals primitive), #824 (auto-provision default agent + manual trigger), #825 (owletto submodule bump to #154). Submodule merged origin/main into our feat/chrome-debugger-executor branch separately; bumps the parent's submodule pointer to the merge SHA so both the executor work and main's recent owletto changes (Mac app LobuClient + connection-settings UI rework + drop default-form-layout) ship together.
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.
Description
Addresses the worker crash:
Failed to extract accountId from tokenwhen using standard OpenAI API keys with the default "ChatGPT" platform connection.Currently, the "ChatGPT" integration (
chatgptprovider ID) is hardcoded to use theopenai-codexengine from@mariozechner/pi-ai, which explicitly expects OAuth JWT Device-Code flow tokens. Supplying standard API keys (sk-...) causes a parsing error when thepi-ailibrary tries to extract theaccountId.This PR appends a new generic
OpenAIprovider configuration block toconfig/system-skills.json. This registers a distinct "OpenAI" connection option in the dashboard that safely routes to the standardopenaiprovider slug inpi-ai("sdkCompat": "openai"), bypassing the JWT decoding.Type of Change
Testing
bun testand all tests passbun run formatandbun run lintmake dev)Checklist
Related Issues
Closes #(issue number)
Additional Notes
The
system-skills.jsonpatch adds the new generic provider while preserving all existing integrations.(Note:
bun run lintsurfaced a few pre-existing a11y and key index warnings inpackages/landing/...which are unrelated to this JSON patch).