mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-23 23:40:03 +08:00
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写 * issue提到的一个bug * 温度最小改成0,但是不应该支持负数 * 修改了最小的温度 * 增加了部分Agent支持和修改了启动文件的部分bug * 修改了GPU数量配置文件 * 1 1 * 修复配置文件错误 * 更新readme,稳定测试
8 lines
228 B
Python
8 lines
228 B
Python
import os
|
|
os.environ["GOOGLE_CSE_ID"] = ""
|
|
os.environ["GOOGLE_API_KEY"] = ""
|
|
|
|
from langchain.tools import GoogleSearchResults
|
|
def google_search(query: str):
|
|
tool = GoogleSearchResults()
|
|
return tool.run(tool_input=query) |