mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-02 01:27:14 +00:00
chore(model): Update the default model to glm-4-9b-chat (#1629)
This commit is contained in:
@@ -194,7 +194,7 @@ class Config(metaclass=Singleton):
|
||||
self.CHAT_HISTORY_STORE_TYPE = os.getenv("CHAT_HISTORY_STORE_TYPE", "db")
|
||||
|
||||
### LLM Model Service Configuration
|
||||
self.LLM_MODEL = os.getenv("LLM_MODEL", "vicuna-13b-v1.5")
|
||||
self.LLM_MODEL = os.getenv("LLM_MODEL", "glm-4-9b-chat")
|
||||
self.LLM_MODEL_PATH = os.getenv("LLM_MODEL_PATH")
|
||||
|
||||
### Proxy llm backend, this configuration is only valid when "LLM_MODEL=proxyllm"
|
||||
|
@@ -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