Skip to content

feat: add haryai provider - #796

Open
sunsiyuan wants to merge 1 commit into
charmbracelet:mainfrom
sunsiyuan:haryai
Open

sunsiyuan wants to merge 1 commit into
charmbracelet:mainfrom
sunsiyuan:haryai

Conversation

@sunsiyuan

Copy link
Copy Markdown

Adds HaryAI, an OpenAI-compatible API gateway that sells DeepSeek below the official price, as provider haryai. Crush users can then pick DeepSeek V4 Pro and DeepSeek V4.1 Flash with HARYAI_KEY. I run HaryAI.

  • Type: completions at https://api.haryai.com/v1.
  • Default models: DeepSeek V4 Pro as the large model, DeepSeek V4.1 Flash as the small one.
  • Limits: 1,048,576-token context and 393,216-token max output on both, as the API docs list them.
  • Prices: USD per 1M tokens, from the public catalog (models.json). One price at every hour, no peak surcharge.
    • DeepSeek V4.1 Flash (deepseek-flash): $0.135 / $0.54, $0.003 for cache hits. DeepSeek's own peak price is $0.3 / $1.2.
    • DeepSeek V4 Pro (deepseek-v4-pro): $0.594 / $1.782, $0.022 for cache hits. DeepSeek's own peak price is $1.32 / $3.96.
  • Reasoning: checked live on the gateway on 2026-11-29. Both models think by default and return it in reasoning_content. thinking.type = disabled turns it off, so toggleable. reasoning_effort is forwarded and validated upstream (an invalid value returns 400) and low, high, max are accepted. The default level is DeepSeek's documented high.
  • Vision: V4.1 Flash accepts images, V4 Pro is text only.

Same provider ID and env var as HaryAI's models.dev entry (open).

go test ./... passes and go run ./cmd/format reformats nothing.

  • 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