Skip to content

Conversation

@wangx-wx
Copy link
Contributor

  • 新增基于API调用的百度千帆智能搜索实现
  • 实现POST请求构建与JSON请求体封装,保证正确传递参数
  • 解析API响应JSON,提取web类型搜索结果并转换为SearchResultItem对象
  • 添加失败时返回兜底示例数据的降级方案,保证接口稳定性
  • 增加HTTP响应与错误响应读取工具方法,改善代码复用
  • 添加单元测试验证无API Key时使用简单模式,且支持环境变量配置进行真实API集成测试
  • 在pom.xml中加入JUnit Jupiter测试依赖支持单元测试运行

- 新增基于API调用的百度千帆智能搜索实现
- 实现POST请求构建与JSON请求体封装,保证正确传递参数
- 解析API响应JSON,提取web类型搜索结果并转换为SearchResultItem对象
- 添加失败时返回兜底示例数据的降级方案,保证接口稳定性
- 增加HTTP响应与错误响应读取工具方法,改善代码复用
- 添加单元测试验证无API Key时使用简单模式,且支持环境变量配置进行真实API集成测试
- 在pom.xml中加入JUnit Jupiter测试依赖支持单元测试运行
Copy link
Collaborator

@canfuu canfuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@canfuu canfuu merged commit 4ace161 into spring-ai-alibaba:main Jan 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants