Skip to content

models: add Requesty external provider constants - #83

Open
Thibaultjaigu wants to merge 1 commit into
cohesion-org:mainfrom
Thibaultjaigu:feat/add-requesty-provider
Open

models: add Requesty external provider constants#83
Thibaultjaigu wants to merge 1 commit into
cohesion-org:mainfrom
Thibaultjaigu:feat/add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

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: RequestyDeepSeekChat and RequestyDeepSeekV4Flash constants
  • examples/00_external_providers/chat.go: commented Requesty baseURL option (alongside the Azure/OpenRouter ones)
  • README.md: Requesty bullet under External Providers + the features list

Tested

  • go build ./..., go vet ./..., gofmt — clean
  • go test -short ./... — pass
  • Live: deepseek.NewClient(key, "https://router.requesty.ai/v1/") with deepseek.RequestyDeepSeekV4Flash returns 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.

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.
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