Skip to content

Restore OpenAI/Gemini providers, rename INNOVATION_ENV#3

Open
Iain27 wants to merge 6 commits intomainfrom
feature/restore-providers
Open

Restore OpenAI/Gemini providers, rename INNOVATION_ENV#3
Iain27 wants to merge 6 commits intomainfrom
feature/restore-providers

Conversation

@Iain27
Copy link
Copy Markdown
Contributor

@Iain27 Iain27 commented Apr 4, 2026

Summary

  • Restore gemini_provider.py and openai_provider.py from Innovation source (accidentally stripped in earlier cleanup)
  • Register both providers in factory registry (frontend provider selector auto-shows when 2+ keys configured)
  • Rename INNOVATION_ENVSINGULARITY_ENV across all files

Test plan

  • Backend starts with all 3 provider keys in .env
  • /api/v1/ai/status returns 3 available providers
  • Provider dropdown appears in AI player setup UI
  • AI game works with each provider selected

🤖 Generated with Claude Code

…_ENV

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

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

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: 9419dcb303

ℹ️ 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 on lines +11 to +12
from services.ai_providers.gemini_provider import GeminiAIProvider
from services.ai_providers.openai_provider import OpenAIProvider
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid hard-importing optional AI provider SDKs

Importing GeminiAIProvider and OpenAIProvider at module load time makes any import of this factory require google.genai and openai, even when the deployment only uses Anthropic. In the current repo manifests, those SDKs are not declared, so normal startup paths that import this module can fail with ModuleNotFoundError before provider selection logic runs. Please lazy-load optional providers (or add the dependencies) so unused providers cannot break boot.

Useful? React with 👍 / 👎.

Comment thread backend/auth.py
answersn0tnull and others added 4 commits April 3, 2026 18:58
…implify AI system

- 8 difficulty levels → 3 (easy/medium/hard) with distinct models (Haiku/Sonnet/Opus)
- Restore OpenAI + Gemini providers with graceful ImportError handling
- Simplify AI personalities (3 characters: ABACUS, DEEP BLUE, OMEGA)
- Rename INNOVATION_ENV → SINGULARITY_ENV across codebase
- Add openai + google-genai to requirements.txt

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
filter_criteria.color treated "tucked_color" as literal string instead of
resolving it as a context variable. Archiving under empty stack failed to
score the tucked card because no card matched color "tucked_color".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…to archive effect

- tuck_card.py → archive_card.py, TuckCard → ArchiveCard everywhere
- "Harvest" → "Score", "Harvest pile" → "Score pile" in all card text, UI, backend
- Fix info panel key terms: Archive = place at bottom of stack
- Astrolabe (S005) changed from "Research a [1]" to "Archive a card from your hand"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Iain27
Copy link
Copy Markdown
Contributor Author

Iain27 commented Apr 4, 2026

@claude

Search Trees drew 2 cards but had no way to auto-score the unchosen one.
Added store_remainder param to SelectCards — stores unselected eligible
cards in a variable so subsequent actions can reference them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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