Skip to content

Add Requesty preset#752

Open
Thibaultjaigu wants to merge 2 commits into
jehna:mainfrom
Thibaultjaigu:add-requesty-provider
Open

Add Requesty preset#752
Thibaultjaigu wants to merge 2 commits into
jehna:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

Adds a requesty preset, mirroring the existing openrouter preset.

Requesty (https://requesty.ai) is an OpenAI-compatible LLM router — base URL https://router.requesty.ai/v1, provider/model naming, Authorization: Bearer auth via REQUESTY_API_KEY.

Changes:

  • src/cli/requesty.rs (new): a faithful copy of src/cli/openrouter.rs with DEFAULTS set to the Requesty base URL, REQUESTY_API_KEY, ProviderKind::OpenAICompat, default model openai/gpt-4o-mini (verified live).
  • src/cli/mod.rs: module declaration + re-export.
  • src/main.rs: Requesty clap subcommand variant + into_requesty_args + dispatch arm.
  • README.md: usage synopsis + a Requesty mode section.

Verified with cargo +1.92 build (Finished, exit 0), cargo fmt --check clean, and the requesty_defaults_constants unit test passes. (The repo's deps require rustc ≥1.92; I built with that toolchain.)

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.

@jehna

jehna commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Hey, thank you for adding this in. Requesty seems to have a good free tier so a Github Actions verification would be really good thing to have so it won't break so easily. Could you add that in? You can check how the other providers do the actions and copy paste from there

Adds a tests/e2e_requesty.rs suite mirroring the OpenRouter e2e, plus a
test-requesty label-gated GitHub Actions workflow that runs it against the
live Requesty endpoint using a REQUESTY_API_KEY secret. Also extends the
shared e2e DSL with requesty judge/builder helpers and documents the new
label in the README.
@Thibaultjaigu

Copy link
Copy Markdown
Author

Added it. There's now a tests/e2e_requesty.rs suite that mirrors e2e_openrouter, plus a .github/workflows/e2e-requesty.yml workflow gated on the test-requesty label (same pattern as the other paid providers) that runs it against the live endpoint using a REQUESTY_API_KEY repo secret. Extended the shared e2e DSL with the requesty judge/builder helpers and noted the new label in the README.

I ran the suite locally against the live Requesty endpoint and it passes (unminifies the fixture and the judge returns EXCELLENT/GOOD). You'll just need to add the REQUESTY_API_KEY secret and apply the test-requesty label for it to run in CI — free-tier keys work fine.

@jehna

jehna commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Great, thank you so much! I'll check this out and add the API key to Github Actions on next week

@jehna jehna left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

💎
I'll verify with Github Actions when I get to my machine from holidays

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