-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hello,
I am writing to inquire about the recommended way to dynamically retrieve the list of supported models using the zAI SDK.
Currently, I have to hardcode model IDs (e.g., glm-4.7, glm-5) in my application. To avoid this, I discovered that I can fetch a list of models via the GET /paas/v4/models endpoint. However, I could not find any official documentation regarding this specific endpoint on your website.
I would like to clarify the following:
Is this endpoint officially supported? If not, is there an alternative API method or SDK function (e.g., client.models.list()) that you recommend for fetching the most up-to-date models available for my account?
Missing Metadata: I noticed that the current response from /models does not include critical information such as Context Window size or Max Output Tokens. Is there a way to obtain these specifications dynamically through the API?
My goal is to ensure my integration can automatically adapt to new model releases without requiring manual code updates every time the model list changes.
Thank you for your assistance.