Skip to content

Added Provider: Pollinations (Text & Image)#43

Draft
aleph23 wants to merge 28 commits intoLettuceAI:mainfrom
aleph23:main
Draft

Added Provider: Pollinations (Text & Image)#43
aleph23 wants to merge 28 commits intoLettuceAI:mainfrom
aleph23:main

Conversation

@aleph23
Copy link
Copy Markdown

@aleph23 aleph23 commented Apr 7, 2026

Add Pollinations text and image providers (and a couple Windose tweaks to get the rust compiling for me -- feel free to toss them obviously).

What's New:

  • Pollinations text and image provider adapters for chat and image generation, including configuration, verification endpoints, and UI icons.
  • Allow image generator adapters to specify HTTP methods and support GET-based image requests with optional empty JSON bodies.
  • Handle direct image binary responses by converting them to base64 data URLs before downstream processing.
  • Extend provider verification and capabilities metadata to support Pollinations provider (Chutes is next)

OS-For-Me Changes:

  • Ensure CUDA Tauri runner spawns via a shell because it wouldn't do otherwise.
  • Added 'windows-core' dependency because tauri insisted.
  • src-tauri/src/llama_cpp/desktop/context.rs seemed to have a number-type mismatch.

@MegalithOfficial
Copy link
Copy Markdown
Contributor

I will review the PR but please follow Conventional Commits format in your future PRs.

https://www.conventionalcommits.org/en/v1.0.0/

Copy link
Copy Markdown
Contributor

@MegalithOfficial MegalithOfficial left a comment

Choose a reason for hiding this comment

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

Requesting changes for a few integration issues before this is ready:

The main one is that pollinations-image hasn’t been wired in as an image-only provider across the model creation/edit flows. Right now models for it still default to text scopes, which means they won’t show up in image-generation pickers and can end up being saved in an invalid chat-model state.

Also, the Pollinations base URL normalization is too aggressive. It strips any path prefix and rebuilds the URL as just scheme://host[:port], which will break anyone using a reverse proxy or gateway like https://example.com/pollinations.

Finally, verification was added in Settings, but not in onboarding, so the same Pollinations credential is verified in one flow and accepted unchecked in the other.

@aleph23 aleph23 marked this pull request as draft April 9, 2026 11:53
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