Skip to content

Add AI provider selection and Pollinations.ai integration #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Undertaker-afk
Copy link

This pull request introduces support for a new AI provider, Pollinations.ai, alongside the existing OpenRouter integration. The changes include updates to the CLI, configuration handling, and the addition of a new client for interacting with the Pollinations.ai API.

CLI Enhancements:

  • Added a new flag --ai-provider to the CLI, allowing users to select between "openrouter" and "pollinations_ai" as the AI provider.

Configuration Updates:

  • Added a new PollinationsAIConfig struct to hold Pollinations.ai-specific API configuration, and updated the Config struct to include it. [1] [2]

Pollinations.ai Client Implementation:

  • Introduced a new PollinationsAIClient struct and associated methods for interacting with the Pollinations.ai API, including a ChatCompletion method to send chat completion requests.

Copy link

github-actions bot commented Jun 2, 2025

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant