Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glm-4-flash stop 参数 #46

Open
2 tasks
UbeCc opened this issue Sep 3, 2024 · 0 comments
Open
2 tasks

glm-4-flash stop 参数 #46

UbeCc opened this issue Sep 3, 2024 · 0 comments
Assignees

Comments

@UbeCc
Copy link

UbeCc commented Sep 3, 2024

System Info / 系統信息

https://open.bigmodel.cn/api/paas/v4/chat/completions

Information / 问题信息

  • The official example scripts / 仓库中的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

image

curl "https://open.bigmodel.cn/api/paas/v4/chat/completions" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $ZHIPU_API_KEY" \
    -d '{
        "stream": false,
        "model": "glm-4-flash",
        "max_tokens": 1024,
        "stop": ["\n\n"],
        "messages": [
            {
                "role": "user",
                "content": "The operation $\\otimes$ is defined for all nonzero numbers by $a\\otimes b =\\frac{a^{2}}{b}$. Determine $[(1\\otimes 2)\\otimes 3]-[1\\otimes (2\\otimes 3)]$.\n$\\text{(A)}\\ -\\frac{2}{3}\\qquad\\text{(B)}\\ -\\frac{1}{4}\\qquad\\text{(C)}\\ 0\\qquad\\text{(D)}\\ \\frac{1}{4}\\qquad\\text{(E)}\\ \\frac{2}{3}$"
            }
        ]
    }'

Expected behavior / 期待表现

在第一步推理后终止

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this Sep 29, 2024
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

No branches or pull requests

2 participants