Class MaxkbTestHelper
java.lang.Object
com.bytedesk.ai.springai.providers.maxkb.MaxkbTestHelper
@Component
@ConditionalOnProperty(name="bytedesk.maxkb.enabled",
havingValue="true",
matchIfMissing=false)
public class MaxkbTestHelper
extends Object
MaxKB 测试工具类
用于验证 MaxKB API 集成功能
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
性能测试void
打印配置信息void
运行所有测试void
测试聊天完成功能void
测试不同模型void
测试错误处理功能void
测试带系统角色的消息功能void
测试响应解析功能void
测试简单消息功能void
测试流式响应功能
-
Field Details
-
maxkbChatService
-
TEST_APPLICATION_ID
- See Also:
-
-
Constructor Details
-
MaxkbTestHelper
public MaxkbTestHelper()
-
-
Method Details
-
runAllTests
public void runAllTests()运行所有测试 -
testChatCompletion
public void testChatCompletion()测试聊天完成功能 -
testSimpleMessage
public void testSimpleMessage()测试简单消息功能 -
testMessageWithSystemRole
public void testMessageWithSystemRole()测试带系统角色的消息功能 -
testStreamResponse
public void testStreamResponse()测试流式响应功能 -
testErrorHandling
public void testErrorHandling()测试错误处理功能 -
testResponseParsing
public void testResponseParsing()测试响应解析功能 -
testDifferentModels
public void testDifferentModels()测试不同模型 -
performanceTest
public void performanceTest()性能测试 -
printConfiguration
public void printConfiguration()打印配置信息
-