Skip to content

Add Requesty as an OpenAI-compatible LLM backend - #125

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

Add Requesty as an OpenAI-compatible LLM backend#125
Thibaultjaigu wants to merge 1 commit into
ChicagoHAI:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

Add Requesty as an LLM backend

Adds Requesty as a manager LLM backend, mirroring the
existing OpenRouter integration. Requesty is an OpenAI-compatible router that uses the
same provider/model naming scheme as OpenRouter (e.g. anthropic/claude-sonnet-4,
openai/gpt-4o-mini).

Changes

  • src/interactive/llm_backend.py
    • New requesty branch in LLMBackend.send() dispatch.
    • New _send_requesty() method, a 1:1 mirror of _send_openrouter() that POSTs to
      https://router.requesty.ai/v1/chat/completions with Authorization: Bearer $REQUESTY_API_KEY. Same OpenAI-compatible request/response and tool-call parsing.
    • Updated module/__init__ docstrings to mention the new backend.
  • config/manager.yaml — adds requesty to the llm_backend options and a model example.
  • src/interactive/manager.py — adds requesty to the --backend argparse choices.
  • INTERACTIVE_MODE_GUIDE.md — documents requesty in the --backend option table.

Notes

  • Auth uses the REQUESTY_API_KEY environment variable (parallels OPENROUTER_API_KEY).
  • No new dependencies; reuses the existing httpx path.

Testing

  • python -m py_compile on both edited Python modules — passes.
  • Live-verified the endpoint with a real chat completion:
    POST https://router.requesty.ai/v1/chat/completions with model=openai/gpt-4o-mini
    returned HTTP 200 and a valid OpenAI-compatible completion.

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

Mirror the existing OpenRouter integration to support Requesty
(https://router.requesty.ai/v1). Adds a requesty backend branch and
_send_requesty() in llm_backend.py, the requesty option in
config/manager.yaml and the --backend argparse choices, and documents
it in INTERACTIVE_MODE_GUIDE.md. Auth via REQUESTY_API_KEY.
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