Skip to content

feat(providers): add OpenAI-compatible endpoint support for GLM/Zai m…#82

Closed
glira wants to merge 1 commit intosipeed:mainfrom
glira:main
Closed

feat(providers): add OpenAI-compatible endpoint support for GLM/Zai m…#82
glira wants to merge 1 commit intosipeed:mainfrom
glira:main

Conversation

@glira
Copy link

@glira glira commented Feb 12, 2026

…odels

Enables using GLM and Zai models (e.g. zai-org/GLM-4.6) with custom OpenAI-compatible API endpoints like Chutes.ai.

When model contains 'glm' or 'zai' and OpenAI provider has a custom api_base (not api.openai.com), the provider will route requests to the custom endpoint with the model name passed as-is.

Resolves configuration issues when using Chutes.ai with PicoClaw.

…odels

Enables using GLM and Zai models (e.g. zai-org/GLM-4.6) with
custom OpenAI-compatible API endpoints like Chutes.ai.

When model contains 'glm' or 'zai' and OpenAI provider has a custom
api_base (not api.openai.com), the provider will route requests
to the custom endpoint with the model name passed as-is.

Resolves configuration issues when using Chutes.ai with PicoClaw.
@lxowalle
Copy link
Collaborator

Thank you for your pr. We will be refactoring the provider soon, which will include features to support custom endpoint.

@xiaket
Copy link
Collaborator

xiaket commented Feb 25, 2026

@glira do you mind taking another look, I believe this has been implemented.

I'm going to close this now, please feel absolutely free to re-open and tag me. Thanks!

@xiaket xiaket closed this Feb 25, 2026
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.

3 participants