Skip to content

[Request] 增加通义千问打开联网搜索的开关 #4877

Closed
@Liangpi000

Description

🥰 需求描述

通义千问模型调用支持联网搜索功能,不过需要在请求中配置。希望lobe能增加一个开关,打开后能启用通义千问的联网搜索功能。

🧐 解决方案

希望lobe能增加一个开关,打开后能启用通义千问的联网搜索功能。

curl -X POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
    "model": "qwen-plus",
    "messages": [
        {
            "role": "system",
            "content": "You are a helpful assistant."
        },
        {
            "role": "user", 
            "content": "中国队在巴黎奥运会获得了多少枚金牌"
        }
    ],
    **"enable_search": true**
}'

📝 补充信息

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    InactiveNo response in 30 days | 超过 30 天未活跃Search联网/搜索🌠 Feature RequestNew feature or request | 特性与建议

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions