Add Requesty AI provider#1256
Open
Thibaultjaigu wants to merge 1 commit into
Open
Conversation
Requesty (https://requesty.ai) is an OpenAI-compatible model gateway that uses the same provider/model identifier format as OpenRouter, so it is added as a provider mirroring the existing OpenRouter integration. - internal/ai/requesty/requesty.go: provider client (base https://router.requesty.ai/v1) - internal/ai/ai.go: register requesty (import, provider list, case arm) - cmd + www/docs + README: list Requesty alongside the other providers
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.
Add Requesty AI provider
This adds Requesty as an AI decompiler provider, alongside the existing Claude / OpenAI / Gemini / Ollama / OpenRouter options.
Requesty is an OpenAI-compatible model gateway that uses the same
provider/modelidentifier format as OpenRouter, so it is implemented by mirroring the existing OpenRouter provider 1:1 (only the base URL and env var differ).Changes
internal/ai/requesty/requesty.go(new) — provider client mirroringinternal/ai/openrouter/openrouter.go; base URLhttps://router.requesty.ai/v1, key fromREQUESTY_API_KEY, same chat/stream/models logic.internal/ai/ai.go— registerrequesty(import, providers list entry,case "requesty":arm) exactly likeopenrouter.cmd/ipsw/cmd/dyld/dyld_disass.go— include requesty in the provider enum used by the command.README.md,www/docs/guides/decompiler.md,www/docs/cli/ipsw/dyld/disass.md— list Requesty alongside the other providers (browse models at https://app.requesty.ai/router/list).Testing
go build ./internal/ai/...clean,go vet ./internal/ai/...clean,gofmt -lempty on changed files.POST https://router.requesty.ai/v1/chat/completionswithmodel: openai/gpt-4o-mini-> HTTP 200, real completion.Disclosure
I work at Requesty. This mirrors the existing OpenRouter provider as closely as possible. Happy to adjust naming/placement or close it if it's not a fit.