mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-11 05:49:22 +00:00
chore(model): Update the default model to glm-4-9b-chat (#1629)
This commit is contained in:
@@ -26,6 +26,8 @@ def baidu_search(
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:112.0) "
|
||||
"Gecko/20100101 Firefox/112.0"
|
||||
}
|
||||
if num_results < 8:
|
||||
num_results = 8
|
||||
url = f"https://www.baidu.com/s?wd={query}&rn={num_results}"
|
||||
response = requests.get(url, headers=headers)
|
||||
response.encoding = "utf-8"
|
||||
|
Reference in New Issue
Block a user