feat: add Requesty provider preset - #171
Merged
Merged
Conversation
与 OpenRouter 同构:OpenAI Chat、Responses、Anthropic 三种协议, 模型列表免鉴权可拉。Requesty 没有 lobehub 字形,退回首字母, 品牌对照表与免鉴权列表的断言同步更新。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Requesty (an OpenAI compatible LLM router) as a built in aggregator preset, shaped the same way as the OpenRouter entry. It is not marked as recommended.
Changes
src/shared/domain/presets.ts: newrequestypreset next toopenrouterwith three endpoints: OpenAI Chat and Responses athttps://router.requesty.ai/v1, Anthropic athttps://router.requesty.ai(the client adds/v1/messages). Model list is enabled and marked public, sinceGET /v1/modelsreturns 200 without a key. Includes docs and API key links, and a note about the EU base URL (router.eu.requesty.ai).src/shared/domain/baseurl.ts: Requesty added to the/v1row of the prefix table.src/shared/domain/__tests__/presets.test.ts: Anthropic URL row for requesty, and requesty added to themodelListPublicset.src/renderer/src/settings/pages/model/__tests__/preset-brands.test.ts: lobehub has no Requesty icon, so it falls back to initials like OhMyGPT. The expected table and the no icon list are updated.How to test
REQUESTY_API_KEYin a script).openai/gpt-4o-minimanually and send a message.Validation
npm run typecheck(node and web): passeslinton the touched files: passvitestforsrc/shared/domain,src/renderer/src/settings/pages/model,src/renderer/src/components/brand,src/main/kernel/upstream: 65 files, 1760 tests passvitest run: the failures I saw (document-engine native host, provider-registry, sftp, plugin document-rpc and document-scope) fail the same way on a cleanmaincheckout on my machine.release-notes.test.tstimed out once during a full run and passed on rerunUpstreamRouterbuilt from the preset endpoints:openai-chatandopenai-responseswithopenai/gpt-4o-mini, andanthropicwithclaude-fable-5.1all streamed a reply tomessage_end.modelListRequestplusparseModelListreturned 200 both without a key (717 models) and with a key.Disclosure: I work at Requesty. Happy to adjust anything to match project conventions.