Tokenizer is used to split text into tokens recognizable by the model and calculate the count. It receives user input text, processes it through the model for tokenization, and finally returns the corresponding token count. It is suitable for text length evaluation, model input estimation, dialogue context truncation, cost calculation, etc.
The model code to be called.
glm-4.6, glm-4.6v, glm-4.5 "glm-4.6"
The current conversation message list as the model’s prompt input, provided in JSON array format, e.g.,{“role”: “user”, “content”: “Hello”}. Possible message types include system messages, user messages. Note: The input must not consist of system or assistant messages only.
1List of tools the model can call. Supports up to 128 functions.
Passed by the client, must be unique. If empty, it will be generated by default.
Unique ID of the end user
Business processing successful
The task sequence number generated by the Zhipu AI Open Platform. Please use this number when calling the request result interface.
"20241120141244890ab4ee4af84acf"
1727156815
The task number submitted by the client or generated by the platform when the request was initiated.
"1"