yangdx
c838229f05
Remove Chinese comments and added English comments for clarity
2025-02-06 23:10:15 +08:00
yangdx
81377da418
Merge tag 'time-temp' into improve-ollama-api-streaming
2025-02-06 23:00:32 +08:00
yangdx
6ca7487cac
Update timeout and max_retries for unit tests
2025-02-06 19:56:18 +08:00
yangdx
e49d3665aa
Fix linting
2025-02-06 03:18:05 +08:00
yangdx
9242f16cc1
Add error handling and improve logging for concurrent request testing
...
• Added McpError and ErrorCode classes
• Added detailed error collection logic
• Improved error reporting & formatting
• Added request ID tracking
• Enhanced test results visibility
2025-02-06 03:17:27 +08:00
yangdx
840639a873
Fix linting
2025-02-02 22:13:49 +08:00
yangdx
c316edb2d9
Add http status check for unit tests
2025-02-02 22:03:55 +08:00
yangdx
9f82ba4970
Remove error handling tests from "all" mode
2025-02-02 21:59:56 +08:00
yangdx
5d3060dfa5
Refactor configuration and conversation history handling of unit test code
...
- Add DEFAULT_CONFIG constant
- Introduce EXAMPLE_CONVERSATION
- Remove redundant DEFAULT_CONFIG
- Simplify chat request creation
- Update tests to use shared history
2025-01-30 13:12:19 +08:00
yangdx
c1edef7119
Increase timeout for LightRAG Ollama chat
2025-01-26 23:21:32 +08:00
yangdx
fb9df50ada
Add conversation history support to chat API
...
- Added HISTORY_TURNS env variable
- Updated chat request data creation
- Modified server to handle history
- Added history to test cases
2025-01-25 22:14:40 +08:00
yangdx
f30a69e201
Fix linting, remove redundant commentsr and clean up code for better readability
2025-01-24 23:50:47 +08:00
yangdx
032af348b0
Remove performance stats test from generate endpoint
...
- Deleted performance stats test function
- Updated test cases dictionary
- Removed test from main execution block
- Simplified test suite
- Focused on core functionality
2025-01-24 19:38:35 +08:00
yangdx
5967dd8da7
Remove long input test case from error handling
...
- Deleted very long input test
- Simplified error handling test
- Improved code readability
- Reduced unnecessary test cases
- Streamlined test function
2025-01-24 19:30:14 +08:00
yangdx
385661b10e
Removed query mode parsing and related tests
...
- Removed query mode parsing logic
- Removed test_generate_query_modes
- Simplified generate endpoint
- Updated test cases list
- Cleaned up unused code
2025-01-24 19:25:45 +08:00
yangdx
c26d799bb6
Add generate API tests and enhance chat API tests
...
- Add non-streaming generate API test
- Add streaming generate API test
- Add generate error handling tests
- Add generate performance stats test
- Add generate concurrent request test
2025-01-24 19:09:31 +08:00
yangdx
fa9765ecd9
pre-commit run --all-files
2025-01-17 14:20:55 +08:00
yangdx
48f70ff8b4
Translate unit test comment and promts to English
2025-01-17 14:07:17 +08:00
yangdx
939e399dd4
Translate comment to English
2025-01-17 13:36:31 +08:00
yangdx
3138ae7599
添加对 mix 查询模式的支持
2025-01-17 11:04:36 +08:00
yangdx
b38a98a514
默认不输出测试结果到文件
2025-01-16 20:22:53 +08:00
yangdx
7658f4cbf0
移除性能统计的打印输出
...
- 注释掉非流式聊天中的性能统计打印
- 注释掉流式聊天中的性能统计打印
- 保持代码简洁,减少冗余输出
2025-01-16 01:16:53 +08:00
yangdx
350e080ec1
优化测试脚本配置和命令行参数处理
...
- 移除冗余的stream_query配置
- 统一使用query作为测试查询内容
- 新增--ask参数覆盖查询内容
- 调整命令行参数顺序
2025-01-16 01:11:59 +08:00
yangdx
9632a8f0dc
解决查询命中缓存时流式响应未遵循Ollma规范的问题
...
- rag返回结果未字符串时,响应分两次发送
- 第一次发送查询内容
- 第二次发送统计信息
2025-01-15 23:09:50 +08:00
yangdx
e978a15593
移除未使用的导入并简化类型注解
2025-01-15 22:39:41 +08:00
yangdx
f441a45453
完善测试用例
2025-01-15 22:15:46 +08:00
yangdx
6d44178f63
修复测试用例流结束判断
2025-01-15 21:26:20 +08:00
yangdx
af9ac188f0
增强聊天接口的调试和性能统计功能
...
- 添加原始请求日志记录
- 修改响应结构以包含性能统计
- 更新测试用例以展示性能数据
- 优化响应格式为字典结构
- 增加请求体解码功能
2025-01-15 21:15:12 +08:00
yangdx
f81b1cdf0a
为Ollama API返回结果添加图像字段和性能统计信息
...
- 在OllamaMessage中添加images字段
- 响应消息中增加images字段
- 完成标记中添加性能统计信息
- 更新测试用例以处理性能统计
- 移除测试用例中的/naive前缀
2025-01-15 20:46:45 +08:00
yangdx
23f838ec94
优化流式响应处理并添加测试用例
...
- 修复流式响应中的完成标记逻辑
- 添加非流式调用测试
- 添加流式调用测试
- 优化JSON序列化,支持非ASCII字符
- 确保生成器在完成标记后立即结束
2025-01-15 20:18:17 +08:00