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

[Feature]: 智谱AI支持联网 #657

Closed
magicdmer opened this issue Jan 6, 2025 · 2 comments
Closed

[Feature]: 智谱AI支持联网 #657

magicdmer opened this issue Jan 6, 2025 · 2 comments
Assignees

Comments

@magicdmer
Copy link
Collaborator

Is your feature request related to a problem?

目前的智谱AI模型没加上联网选项

Describe the solution you'd like

加上智谱AI联网选项,参考如下:

if (model == "glm-4-alltools"):
    tools = [{
        "type": "web_browser"
    }]
else:
    tools = [{
        "type": "web_search",
        "web_search": {
            "enable": True,
            "search_result":True
        }
    }]

参考:https://open.bigmodel.cn/dev/api/normal-model/glm-4

glm-4和glm-4-alltools的参数不一样,然后智谱AI的联网不是强制性生效,而是根据你问的问题选择性生效。可以通过问“小米15 ultra配置信息” 等类似的引导问题来测试

Describe alternatives you've considered

No response

Additional Context

No response

@kangfenmao
Copy link
Collaborator

感谢提供文档,后面加上

@kangfenmao
Copy link
Collaborator

image

ruiwarn pushed a commit to ruiwarn/cherry-studio that referenced this issue Jan 14, 2025
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