provider: add Friendli - #486
Open
Lee-Si-Yoon wants to merge 7 commits into
Open
Conversation
Lee-Si-Yoon
force-pushed
the
feat/friendli-provider
branch
from
August 1, 2026 06:32
70b1a8d to
2f10ccb
Compare
Lee-Si-Yoon
force-pushed
the
feat/friendli-provider
branch
from
August 1, 2026 06:43
2f10ccb to
133c466
Compare
Only skip models whose deprecation_date has already passed (not just any model with a deprecation_date), so upcoming deprecations remain available until their actual sunset date. Also drop stale reasoning_levels from DeepSeek-V3.2: its API reasoning_options are toggle+budget_tokens (no effort), so it correctly gets no levels per the fix in 62b279e.
The Friendli API now returns reasoning_options including effort, so the step can run unconditionally like the other providers.
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 Friendli as an inference provider. Friendli serves open-source models through an OpenAI-compatible API at
https://api.friendli.ai/serverless/v1.Changes
internal/providers/configs/friendli.jsonwith six active models from the Friendli models endpointinternal/providers/providers.go(embed, registry, provider function)InferenceProviderFriendliconstant inpkg/catwalk/provider.goand included inKnownProviders()Models
Sourced from the live
https://api.friendli.ai/serverless/v1/modelsendpoint. Deprecated models are excluded.Defaults: large =
zai-org/GLM-5.2, small =deepseek-ai/DeepSeek-V3.2.Reasoning note
Friendli handles reasoning differently from most OpenAI-compatible providers. Instead of
reasoning_effort, it useschat_template_kwargs.enable_thinking(toggle) andparse_reasoning/include_reasoningto separate reasoning content intoreasoning_content. The Crush-side coordinator support for this will follow in a separate PR once this catwalk version is released.