feat: add Hoonify AI chat provider - #3499
Open
jelveh wants to merge 1 commit into
Open
Conversation
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
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.
Adds Hoonify — an OpenAI-compatible gateway for open-weights models — as a chat provider for the
puter-chat-completioninterface.What
HoonifyProvider: OpenAI SDK againsthttps://api.hoonify.ai/v1(overridable viaproviders.hoonify.apiBaseUrl), streaming withinclude_usage, tool calling, and Hoonify'stop_ksampling extension viacustom.top_k.GET /v1/modelscarries no prices — a dynamic catalog would meter usage at zero cost.hoonify:<vendor>/<model>); the lowercased ids map back to exact-case wire ids via awireIdfield.Qwen/Qwen3.6-27Bdeliberately gets no vendor-scoped alias — it collides with an existing Alibaba alias, and a colliding alias drops the whole model from the routing map (a test pins this).providers.hoonify.apiKey; disabled otherwise. No puter.js/type changes needed — model discovery is dynamic.Testing
PUTER_TEST_AI_HOONIFY_API_KEY) — passes against the live API, as does a driver-level end-to-end completion. Live checks also confirmed the models endpoint matches the shipped catalog and that streaming emits a final usage chunk.No auth/permission surface changes; the provider only activates when a key is configured.