Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
666ghj
2025-12-08 00:47:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bcc7d9b06aea7d3683a411c1a4a9633a90d86fd0
bcc7d9b0
1 parent
2d6df780
Update .env.example and search.py with corrected Bocha API URL and improved comments
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
.env.example
MediaEngine/tools/search.py
.env.example
View file @
bcc7d9b
...
...
@@ -69,10 +69,10 @@ TAVILY_API_KEY=
# 网络搜索工具类型,支持BochaAPI或AnspireAPI两种,默认为AnspireAPI
SEARCH_TOOL_TYPE=AnspireAPI
# Bocha AI Search BASEURL,用于Bocha多模态搜索,这里密钥名称虽然是Web Search,但其实是要AI Search的,申请地址:https://open.bochaai.com/
BOCHA_BASE_URL=https://api.bocha.cn/v1/ai-search
BOCHA_WEB_SEARCH_API_KEY=
# Anspire AI Search API(申请地址:https://open.anspire.cn/)
# Anspire AI Search API(申请地址:https://open.anspire.cn/,相同效果下费用是Bocha的一半)
ANSPIRE_BASE_URL=https://plugin.anspire.cn/api/ntsearch/search
ANSPIRE_API_KEY=
# Bocha AI Search API(用于Bocha多模态搜索,这里密钥名称虽然是Web Search,但其实是要AI Search的,申请地址:https://open.bochaai.com/)
BOCHA_BASE_URL=https://api.bocha.cn/v1/ai-search
BOCHA_WEB_SEARCH_API_KEY=
\ No newline at end of file
...
...
MediaEngine/tools/search.py
View file @
bcc7d9b
...
...
@@ -103,7 +103,7 @@ class BochaMultimodalSearch:
每个公共方法都设计为供 AI Agent 独立调用的工具。
"""
BOCHA_BASE_URL
=
settings
.
BOCHA_BASE_URL
or
"https://api.bocha.c
om
/v1/ai-search"
BOCHA_BASE_URL
=
settings
.
BOCHA_BASE_URL
or
"https://api.bocha.c
n
/v1/ai-search"
def
__init__
(
self
,
api_key
:
Optional
[
str
]
=
None
):
"""
...
...
Please
register
or
login
to post a comment