Skip to content

feat: add Gemini provider via OpenAI-compatible API#51

Merged
iagooar merged 1 commit into
masterfrom
feat/gemini-provider
Jun 25, 2026
Merged

feat: add Gemini provider via OpenAI-compatible API#51
iagooar merged 1 commit into
masterfrom
feat/gemini-provider

Conversation

@iagooar

@iagooar iagooar commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a built-in gemini HTTP provider pointing at Google's OpenAI-compatible endpoint.
  • Wire Gemini into --init as option [8] and document GEMINI_API_KEY setup.
  • Add config test coverage for profile resolution.

Partially addresses #43. Supersedes #46 — thanks @Andrei9383.

Does not include a gemini-cli backend (still future work per #43).

Test plan

  • cargo test
  • export GEMINI_API_KEY=... && qq --profile gemini "what is ripgrep?"

Made with Cursor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a3ca6832d5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/config.rs
Comment on lines +322 to +326
profiles.insert(
"gemini".to_string(),
Profile {
model_provider: "gemini".to_string(),
model: "gemini-3-flash-preview".to_string(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Merge Gemini defaults into existing configs

These default profile/provider inserts only affect newly created configs; when a user already has ~/.qq/config.json, Config::load_or_init parses and returns that file unchanged, so upgrading users get no gemini profile or provider and qq --profile gemini ... fails with Profile 'gemini' not found unless they manually edit or delete their config. Please merge missing built-in defaults into loaded configs (without overwriting user customizations) so the new bundled provider is actually available to existing installations.

Useful? React with 👍 / 👎.

@iagooar
iagooar merged commit 7a10e0a into master Jun 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants