Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
6 Views

Hi, I'm testing the platform, I found an error when I call to GLM-4.7 and the parameter "max_tokens" is not included in payload, this problem doesn't happen with other models.

Example:
curl -X POST https://api.berget.ai/v1/chat/completions --header "Authorization: Bearer ${BERGET_API_KEY}" --header "Content-Type: application/json" --data '{
"model": "zai-org/GLM-4.7",
"messages": [
{"role": "user", "content": "Knock knock?"}
]
}'

Response:
{"error":{"message":"Request failed with status code 400","type":"authentication_error","param":null,"code":"INTERNAL_ERROR"}}

The same request with "max_tokens": xxx in payload works perfectly.

Avatar
Discard
Author
Thanks for this error report. This is now solved.
Avatar
Discard