Skip to content

Add Requesty as an embedding provider - #268

Open
Thibaultjaigu wants to merge 1 commit into
yoanbernabeu:mainfrom
Thibaultjaigu:add-requesty-provider
Open

Add Requesty as an embedding provider#268
Thibaultjaigu wants to merge 1 commit into
yoanbernabeu:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

This adds Requesty as an embedding provider, mirroring the existing OpenRouter embedder.

Requesty (https://router.requesty.ai/v1) is an OpenAI-compatible LLM router that also serves an /embeddings endpoint, so the wiring follows the OpenRouter embedder closely.

Changes:

  • embedder/requesty.go: new RequestyEmbedder mirroring OpenRouterEmbedder (default endpoint https://router.requesty.ai/v1, default model openai/text-embedding-3-small, Authorization: Bearer auth, REQUESTY_API_KEY env fallback).
  • embedder/factory.go, config/config.go: wire requesty into the factory and config defaults.
  • cli/init.go, cli/completion.go: add requesty to the interactive init and shell completion.
  • stats/stats.go: treat requesty as a cloud (cost-bearing) provider.
  • tests + CHANGELOG entry.

Verified: go build ./..., go vet ./embedder/, go test ./embedder/ ./cli/ ./config/ ./stats/ all pass, and a live Embed through embedder.NewFromConfig returns a 1536-dim vector from the real endpoint.

I work at Requesty. This mirrors the existing OpenRouter provider as closely as possible. Happy to adjust or close it if it's not a fit.

Mirror the existing OpenRouter embedder to add Requesty (https://router.requesty.ai/v1),
an OpenAI-compatible LLM router that also serves an /embeddings endpoint. Adds a dedicated
"requesty" embedder, wires it into the factory, config defaults, CLI init/completion, and
cost stats, with tests mirroring the OpenRouter embedder.
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.

1 participant