mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
feat: enhance VLM response parsing and DOUBAO model support
- Fix JSON extraction logic by prioritizing brace counting method - Add support for DOUBAO string array coordinate format - Introduce IS_UI_TARS helper function for model type checking - Add comprehensive tests for JSON parsing and coordinate handling - Improve error handling with retry delays for LLM service failures
This commit is contained in:
@@ -30,9 +30,17 @@ func WithCVService(service CVServiceType) AIServiceOption {
|
||||
|
||||
type LLMServiceType string
|
||||
|
||||
func IS_UI_TARS(modelType LLMServiceType) bool {
|
||||
return modelType == DOUBAO_1_5_UI_TARS_250328 ||
|
||||
modelType == DOUBAO_1_5_UI_TARS_250428
|
||||
}
|
||||
|
||||
const (
|
||||
DOUBAO_1_5_UI_TARS_250328 LLMServiceType = "doubao-1.5-ui-tars-250328"
|
||||
DOUBAO_1_5_UI_TARS_250428 LLMServiceType = "doubao-1.5-ui-tars-250428" // not support function calling and json response
|
||||
DOUBAO_1_5_THINKING_VISION_PRO_250428 LLMServiceType = "doubao-1.5-thinking-vision-pro-250428"
|
||||
OPENAI_GPT_4O LLMServiceType = "openai/gpt-4o"
|
||||
DEEPSEEK_R1_250528 LLMServiceType = "deepseek-r1-250528"
|
||||
)
|
||||
|
||||
func WithLLMService(modelType LLMServiceType) AIServiceOption {
|
||||
|
||||
Reference in New Issue
Block a user