mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
docs: update AI module README with latest features
- Add comprehensive documentation for the new Query functionality - Update interface method names from Call to Plan for consistency - Add OpenAI GPT-4O model support documentation - Include detailed usage examples for basic and custom schema queries - Add configuration examples for multiple model services - Document new features like ResetHistory, Usage statistics, and automatic type conversion - Expand advanced features section with custom output format examples - Update all code examples to reflect the latest API changes The documentation now reflects the current state of the AI module with all three core capabilities: - Planning (renamed from Call) - Assertion - Query (new feature) All examples and configurations are updated to match the latest implementation.
This commit is contained in:
@@ -52,7 +52,7 @@ func TestVLMPlanning(t *testing.T) {
|
||||
}
|
||||
|
||||
// 执行规划
|
||||
result, err := planner.Call(context.Background(), opts)
|
||||
result, err := planner.Plan(context.Background(), opts)
|
||||
|
||||
// 验证结果
|
||||
require.NoError(t, err)
|
||||
@@ -95,7 +95,7 @@ func TestXHSPlanning(t *testing.T) {
|
||||
}
|
||||
|
||||
// 执行规划
|
||||
result, err := planner.Call(context.Background(), opts)
|
||||
result, err := planner.Plan(context.Background(), opts)
|
||||
|
||||
// 验证结果
|
||||
require.NoError(t, err)
|
||||
@@ -138,7 +138,7 @@ func TestChatList(t *testing.T) {
|
||||
}
|
||||
|
||||
// 执行规划
|
||||
result, err := planner.Call(context.Background(), opts)
|
||||
result, err := planner.Plan(context.Background(), opts)
|
||||
|
||||
// 验证结果
|
||||
require.NoError(t, err)
|
||||
@@ -183,7 +183,7 @@ func TestHandleSwitch(t *testing.T) {
|
||||
}
|
||||
|
||||
// Execute planning
|
||||
result, err := planner.Call(context.Background(), opts)
|
||||
result, err := planner.Plan(context.Background(), opts)
|
||||
|
||||
// Validate results
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user