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.