Skip to content

Conversation

@StudiousXiaoYu
Copy link
Contributor

Hi, this PR is add Moonshot model client and has passed unit testing.
I can provide my api_key if needed for testing

the PR content:

  • Add HunYuan AI chat model
  • Add HunYuan AI chat model test case
  • Add HunYuan AI chat model documentation
  • Add HunYuan AI spring starter


HunYuan is a popular LLM in China Mainland recently, the link: HunYuan

StudiousXiaoYu and others added 30 commits January 21, 2025 09:39
* Fix the ChatClient.Builder auto-configuration so that it's only autoconfigured when there is no bean defined yet.

Fixes spring-projectsgh-2034

Signed-off-by: Thomas Vitale <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
  - Remove unused type from RedisVectorStore

Signed-off-by: StudiousXiaoYu <[email protected]>
Moving BatchingStrategy configuration from individual vector store implementations
to the base AbstractVectorStoreBuilder to reduce code duplication and provide consistent
batching behavior across all vector stores.

The default TokenCountBatchingStrategy is now set in the base builder class.

Signed-off-by: StudiousXiaoYu <[email protected]>
- The VectorStore builders shouldn't be final as they are meant to be extensible
 - Suppress the `FinalClass` checkstyle errors on VectorStore classes

Signed-off-by: StudiousXiaoYu <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
Closes spring-projects#1932

Signed-off-by: Gerrit Meier <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
- 更新 API 调用方式,使用 secretId 和 secretKey 进行认证
- 修复测试配置中的 API 实例创建逻辑
-优化部分代码结构,提高可读性和维护性

Signed-off-by: StudiousXiaoYu <[email protected]>
- 修改类名和方法名以符合规范
- 添加必要的注释说明
- 优化代码结构和逻辑
- 更新类 HunYuanRuntimeHints 的描述- 重构 HunYuanAuthApi 类,添加新方法并优化现有方法
- 更新 HunYuanApi 类,移除未使用的代码并添加新功能

Signed-off-by: StudiousXiaoYu <[email protected]>
- 新增 HunYuanAutoConfiguration 类实现自动配置
- 添加 HunYuanChatProperties 和 HunYuanCommonProperties 类管理配置属性
- 更新 HunYuanApi 和 HunYuanChatModel 类以支持新功能
-增加相关测试用例验证功能

Signed-off-by: StudiousXiaoYu <[email protected]>
- 在 pom.xml 中添加 spring-ai-starter-hunyuan 模块
- 实现 HunYuanRuntimeHints 类以注册 HunYuan API 的运行时提示
- 开发 HunYuanAuthApi 类处理身份验证和授权
- 创建 HunYuanApi 类提供与 HunYuan 平台交互的客户端库
- 定义 HunYuanConstants 存储常量
- 实现 HunYuanStreamFunctionCallingHelper 类支持流式函数调用

Signed-off-by: StudiousXiaoYu <[email protected]>
- 新增 HunYuan AI聊天模型的使用说明和配置指南
- 添加 HunYuan函数调用的示例和实现细节
- 更新导航栏,增加 HunYuan AI 相关链接
- 修正 HunYuan API 客户端的注释- 更新 README 文件中的文档链接

Signed-off-by: StudiousXiaoYu <[email protected]>
* Extend Query with conversation history in RetrievalAugmentationAdvisor
* Add integration tests for query compression and rewrite

Signed-off-by: Thomas Vitale <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
* Defined new APIs consolidating the “tool” naming as opposed to the current “function”, aligning with the industry and solving the confusion between “function tool” and “Java Function”: ToolCallback and ToolCallingChatOptions. They extend the current ones to ensure backward compatibility, but FunctionCallback and FunctionCallingOptions can be considered deprecated.
* Enhanced support for methods as tools, introducing support for declarative Tool-annotated methods via MethodToolCallback and MethodToolCallbackProvider (deprecating the existing MethodInvokingFunctionCallback).
* Improved tool execution logic with granular support for returning the result directly to the client and exception handling.
* Improved JSON Schema generation and parsing logic, consolidating the usage of the victools/jsonschema-generator library and dropping the non-maintained Jackson JSON Schema Module. This makes it possible to use tools with input lists/arrays, which the latter library was not supporting.
* Extended ChatClient API with new methods tools() and toolCallbacks(). The existing functions() methods can be considered deprecated.

Relates to spring-projectsgh-2049

Signed-off-by: Thomas Vitale <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
Signed-off-by: Andreas Köninger <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
 - Add OpenAI TTS Voice Unit Test

Signed-off-by: StudiousXiaoYu <[email protected]>
jitokim and others added 7 commits January 21, 2025 09:41
Signed-off-by: jitokim <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
Signed-off-by: Ricken Bazolo <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
This commit adds support for the MiniMax-Text-01 model,
which is recommended for general scenarios due to its
longer context window.

The new model is added to the ChatModel enum as MiniMax_Text_01.

Signed-off-by: Alexandros Pappas <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
Signed-off-by: Bruno Oliveira <[email protected]>
Signed-off-by: StudiousXiaoYu <[email protected]>
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.