Skip to content

feat: add weflayr provider - #783

Open
SebConejo wants to merge 1 commit into
charmbracelet:mainfrom
SebConejo:add-weflayr-provider
Open

SebConejo wants to merge 1 commit into
charmbracelet:mainfrom
SebConejo:add-weflayr-provider

Conversation

@SebConejo

Copy link
Copy Markdown

Adds Weflayr, an OpenAI-compatible LLM gateway, as provider weflayr. Crush users can then pick Claude, GPT, Gemini, Kimi, Qwen and DeepSeek models through one key, WEFLAYR_API_KEY. I work on Weflayr.

  • Type: completions at https://gateway.weflayr.com/v1.
  • Models: nine coding models out of the gateway's catalog: Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5, GPT-6.2 Astra, GPT-6.2 Sol, Gemini 4 Neon, Kimi K3.1 Pro, Qwen 4 Max and DeepSeek V4.1 Flash 1017. Model ids are the ones the gateway takes, with no vendor prefix.
  • Default models: Claude Sonnet 5.5 as the large model and Claude Haiku 5.5 as the small one.
  • Limits: context windows and output caps as the catalog lists them for each model.
  • Prices: USD per 1M tokens for the global deployment, as the public catalog lists them (GET /v1/models, no key needed). cache_hit is the cached input price, and cache_create is the cache write price on the models that charge one.
  • Reasoning: the same thinking modes and effort levels as the matching models in vercel.json. The gateway takes reasoning_effort from none to max on every model.
  • Vision: all nine accept image input.

go run ./cmd/format, go vet ./... and go test ./... pass locally, and gofumpt reports no change on the Go files.

  • I have read CONTRIBUTING.md.
  • [-] I have created a discussion that was approved by a maintainer (for new features). This adds a provider config only.

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