File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " dreamsboard"
3
- version = " 0.3.6 "
3
+ version = " 0.3.7 "
4
4
description = " "
5
5
authors = [" glide-the <2533736852@qq.com>" ]
6
6
readme = " README.md"
Original file line number Diff line number Diff line change 37
37
logging .config .dictConfig (logging_conf ) # type: ignore
38
38
39
39
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 " ),
43
43
verbose = True ,
44
44
temperature = 0.1 ,
45
45
top_p = 0.9 ,
58
58
tools = [ { "type" : "web_search" , "web_search" : {"enable" : False ,"search_result" : False }}]
59
59
else :
60
60
tools = []
61
- llm_with_tools = llm
61
+ llm_with_tools = llm . bind ( tools = [ _get_assistants_tool ( tool ) for tool in tools ] )
62
62
kor_dreams_task_step_llm_with_tools = guiji_llm .bind ( tools = [_get_assistants_tool (tool ) for tool in tools ] )
63
63
64
64
You can’t perform that action at this time.
0 commit comments