Skip to content

feat: add Requesty as an OpenAI-compatible provider#2399

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

feat: add Requesty as an OpenAI-compatible provider#2399
Thibaultjaigu wants to merge 1 commit into
vectorize-io:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

Requesty is an OpenAI-compatible LLM gateway. This adds it as a named provider, mirroring the existing OpenRouter named-provider wiring as closely as possible.

What changed

  • hindsight-api-slim/hindsight_api/engine/llm_wrapper.py — add "requesty" to the factory provider list and the valid_providers list, plus a base-URL branch resolving to https://router.requesty.ai/v1.
  • hindsight-api-slim/hindsight_api/engine/providers/openai_compatible_llm.py — same three sites (provider list, API-key-required list, base-URL branch).
  • hindsight-api-slim/hindsight_api/config.py — default-model map entry (openai/gpt-4o-mini), Requesty embeddings env-var constants, dataclass fields, and from_env wiring (with the same key fallback chain OpenRouter uses: EMBEDDINGS_REQUESTY_API_KEYREQUESTY_API_KEYLLM_API_KEY).
  • hindsight-api-slim/hindsight_api/engine/embeddings.py — a requesty embeddings branch (same /v1 base, OpenAI-compatible) and the Supported: list string.
  • hindsight-docs/docs/developer/configuration.md + hindsight-docs/src/data/llmProviders.json — factual provider/env entries mirroring the OpenRouter rows.

Model naming is provider/model (e.g. openai/gpt-4o-mini), identical to OpenRouter. No LiteLLM-router internals or reranker config were touched.

Tested live

Standalone probe POSTing to https://router.requesty.ai/v1/chat/completions with model: openai/gpt-4o-mini, max_tokens: 32HTTP 200 (response model gpt-4o-mini-2024-07-18).

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

Requesty is an OpenAI-compatible LLM gateway. This mirrors the existing
OpenRouter named-provider wiring 1:1:

- llm_wrapper.py / openai_compatible_llm.py: add "requesty" to the
  provider lists and a base_url branch -> https://router.requesty.ai/v1
- config.py: default model map (openai/gpt-4o-mini), embeddings env vars,
  dataclass fields, and from_env wiring (REQUESTY_API_KEY fallbacks)
- embeddings.py: requesty branch (same /v1 base) + Supported list
- docs/llmProviders.json: factual provider entries

Tested live against https://router.requesty.ai/v1/chat/completions
(model openai/gpt-4o-mini) -> HTTP 200.
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