models: add Requesty external provider constants - #83
Open
Thibaultjaigu wants to merge 1 commit into
Open
Conversation
Requesty (https://requesty.ai) is an OpenAI-compatible gateway, so it works like the existing OpenRouter external-provider path: set the client baseURL to https://router.requesty.ai/v1/ with a Requesty API key. - models.go: add RequestyDeepSeekChat and RequestyDeepSeekV4Flash constants - examples/00_external_providers/chat.go: commented Requesty baseURL option - README: Requesty bullet under External Providers + features list Constants are limited to slugs verified to route on Requesty. Live-tested: NewClient(key, "https://router.requesty.ai/v1/") + RequestyDeepSeekV4Flash returns a valid completion.
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.
What
Adds Requesty to the external-provider support, mirroring the existing OpenRouter path. Requesty is an OpenAI-compatible gateway, so it works by pointing the client baseURL at
https://router.requesty.ai/v1/with a Requesty API key.models.go:RequestyDeepSeekChatandRequestyDeepSeekV4Flashconstantsexamples/00_external_providers/chat.go: commented Requesty baseURL option (alongside the Azure/OpenRouter ones)README.md: Requesty bullet under External Providers + the features listTested
go build ./...,go vet ./...,gofmt— cleango test -short ./...— passdeepseek.NewClient(key, "https://router.requesty.ai/v1/")withdeepseek.RequestyDeepSeekV4Flashreturns a valid completion.I limited the constants to model slugs I verified actually route on Requesty (
deepseek/deepseek-chat,deepseek/deepseek-v4-flash), rather than copying every OpenRouter R1 slug.Disclosure
I work at Requesty. This mirrors the existing OpenRouter external-provider pattern. Happy to adjust naming/placement or close if it's not a fit.