Add FriendliAI as a built-in provider (GLM-5.2 support) #4770
Closed
Lee-Si-Yoon
started this conversation in
Ideas
Replies: 1 comment
|
vouched! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature Request: Add FriendliAI as a built-in provider
I'd like to use FriendliAI models — specifically GLM-5.2 — through oh-my-pi.
Why
FriendliAI provides an OpenAI-compatible API endpoint (
https://api.friendli.ai/v1), so it should fall under the common case described indocs/adding-a-provider.md— an OpenAI-compatible gateway that reuses theopenai-completionswire API.Proposed changes
Following the adding-a-provider guide, the change would be:
Catalog entry in
packages/catalog/src/provider-models/descriptors.ts:id: "friendli"defaultModel: "glm-5.2"envVars: ["FRIENDLI_API_KEY"]createModelManagerOptions: usecreateSimpleOpenAICompletionsOptions("friendli", "https://api.friendli.ai/v1", ...)Registry def at
packages/ai/src/registry/friendli.ts:id: "friendli",name: "FriendliAI"Registry registration in
packages/ai/src/registry/registry.ts:ALLarrayThis is a minimal, env-key-only provider addition. Happy to open a PR once vouched!
Vouch request
I'd also like to be vouched so I can submit the PR.
All reactions