Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Nov 23, 2025

This PR attempts to address Issue #9512. Feedback and guidance are welcome.

Summary

Adds support for Poe (poe.com) as a provider in Roo Code, leveraging their OpenAI-compatible API.

Changes

  • Add Poe model definitions with support for multiple models:
    • GPT models (gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbo)
    • Claude models (claude-3-5-sonnet, claude-3-5-haiku, claude-3-opus, etc.)
    • Gemini models (gemini-1.5-pro, gemini-1.5-flash)
    • Llama models (llama-3.1-405b, llama-3.1-70b, llama-3.1-8b)
    • Mistral models (mistral-large, mixtral-8x7b)
    • Other models (qwen-2.5-72b, solar-mini)
  • Implement PoeHandler using BaseOpenAiCompatibleProvider
  • Add Poe to provider registry and configuration system
  • Support OpenAI-compatible API endpoint at https://api.poe.com/v1

Testing

  • TypeScript compilation passes successfully
  • Linting passes with no warnings
  • Provider follows the same pattern as other OpenAI-compatible providers (Groq, Fireworks, etc.)

Related

Closes #9512
Previously requested in #6594


Important

Adds support for Poe provider with multiple models, integrating it into the provider registry and configuration system.

  • Behavior:
    • Adds PoeHandler in src/api/providers/poe.ts using BaseOpenAiCompatibleProvider.
    • Supports multiple models: GPT, Claude, Gemini, Llama, Mistral, and others.
    • Integrates Poe into provider registry in provider-settings.ts and index.ts.
  • Models:
    • Defines PoeModelId and poeModels in providers/poe.ts.
    • Sets default model to claude-3-5-sonnet.
  • Configuration:
    • Adds poeSchema to providerSettingsSchemaDiscriminated in provider-settings.ts.
    • Updates ProfileValidator to handle Poe in ProfileValidator.ts.
  • Misc:
    • Adds PoeHandler export in src/api/providers/index.ts.
    • Updates buildApiHandler in src/api/index.ts to include Poe.

This description was created by Ellipsis for 3552782. You can customize this summary. It will automatically update as commits are pushed.

- Add Poe model definitions with support for GPT, Claude, Gemini, Llama, and other models
- Implement PoeHandler using BaseOpenAiCompatibleProvider
- Add Poe to provider registry and configuration
- Support OpenAI-compatible API at https://api.poe.com/v1

Closes #9512
@roomote roomote bot requested review from cte, jr and mrubens as code owners November 23, 2025 15:05
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request labels Nov 23, 2025
@roomote
Copy link
Contributor Author

roomote bot commented Nov 23, 2025

Rooviewer Clock   See task on Roo Cloud

Review complete. Found one model capability issue that should be corrected.

  • Fix claude-3-5-haiku supportsImages flag (should be true)

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@roomote roomote bot mentioned this pull request Nov 23, 2025
2 tasks
"claude-3-5-haiku": {
maxTokens: 4096,
contextWindow: 200000,
supportsImages: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Claude 3.5 Haiku supports vision capabilities according to Anthropic's documentation. This should be supportsImages: true to match the capability and be consistent with claude-3-haiku which correctly has vision support enabled.

Suggested change
supportsImages: false,
supportsImages: true,

Fix it with Roo Code or mention @roomote and request a fix.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Nov 23, 2025
@faf0
Copy link

faf0 commented Nov 24, 2025

Implemented in #9515.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add Poe Provider

4 participants