Conversation
Author
|
@jasonhedman could you review this direct Gemini integration, especially the GitHub Actions currently shows |
This branch has not been deployed
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
OpenInstinct currently treats every selected model as an AI Gateway ID. Selecting Gemini through a direct Google AI Studio key therefore needs a provider-aware path, and Gemini's tool declaration rejects the
oneOfschema emitted by the existingsend_messageunion.This adds an opt-in Gemini 3.5 Flash-Lite (direct) workspace option. The root agent resolves that selection through the Google AI SDK; existing Gateway selections and the stored setting remain unchanged.
send_messageexposes a Gemini-compatible object schema while retaining the existing strict discriminated union for execution and delivery validation. The direct option is shown only whenGOOGLE_GENERATIVE_AI_API_KEYis configured, and a missing key fails closed.The browser subagent and gateway-backed
web_searchremain Gateway-dependent; the README documents that scope and the setup steps.Validation
pnpm install --frozen-lockfilepnpm check(83 test files, 721 tests; lint, type, formatting and repository checks passed)pnpm buildwith placeholder localDATABASE_URL,KERNEL_API_KEY, andBETTER_AUTH_URLvaluesThe same
send_messageschema shape was independently verified with a delivered Linq iMessage in a downstream deployment; this PR itself has not been deployed.