更新api的记忆功能
This commit is contained in:
parent
468b3116cd
commit
122033131b
|
|
@ -122,11 +122,12 @@ def zhipu_search(text, config, top_k):
|
|||
"Content-Type": "application/json"
|
||||
}
|
||||
payload = {
|
||||
"search_engine": "search_std", # 指定Web搜索专用模型
|
||||
"search_query": "哪吒2票房"
|
||||
"search_engine": "Search-Pro", # 指定Web搜索专用模型
|
||||
"search_query": text
|
||||
}
|
||||
response = requests.post(endpoint, headers=headers, json=payload)
|
||||
result = response.json()
|
||||
print(f"================!! result: {result}")
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue