Skip to content

Commit 3851633

Browse files
committedFeb 10, 2025
更新版本
1 parent 04513bb commit 3851633

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎src/dreamsboard/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dreamsboard"
3-
version = "0.3.6"
3+
version = "0.3.7"
44
description = ""
55
authors = ["glide-the <2533736852@qq.com>"]
66
readme = "README.md"

‎test_task/glm/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
logging.config.dictConfig(logging_conf) # type: ignore
3838

3939
llm = ChatOpenAI(
40-
openai_api_base=os.environ.get("API_BASE"),
41-
model=os.environ.get("API_MODEL"),
42-
openai_api_key=os.environ.get("API_KEY"),
40+
openai_api_base=os.environ.get("ZHIPUAI_API_BASE"),
41+
model=os.environ.get("ZHIPUAI_API_MODEL"),
42+
openai_api_key=os.environ.get("ZHIPUAI_API_KEY"),
4343
verbose=True,
4444
temperature=0.1,
4545
top_p=0.9,
@@ -58,7 +58,7 @@
5858
tools= [ { "type": "web_search", "web_search": {"enable": False ,"search_result": False }}]
5959
else:
6060
tools = []
61-
llm_with_tools = llm
61+
llm_with_tools = llm.bind( tools=[_get_assistants_tool(tool) for tool in tools] )
6262
kor_dreams_task_step_llm_with_tools = guiji_llm.bind( tools=[_get_assistants_tool(tool) for tool in tools] )
6363

6464

0 commit comments

Comments
 (0)
Please sign in to comment.