feat: set LLMService/CVService for case runner

This commit is contained in:
lilong.129
2025-04-28 19:45:07 +08:00
parent 7fa4155390
commit 4d7dc466f3
5 changed files with 31 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ func WithLLMService(service LLMServiceType) AIServiceOption {
return func(opts *AIServices) {
switch service {
case LLMServiceTypeGPT4o:
// TODO: implement gpt-4o planner and asserter
planner, err := NewPlanner(context.Background())
if err != nil {
log.Error().Err(err).Msg("init gpt-4o planner failed")

View File

@@ -8,7 +8,6 @@ import (
"github.com/stretchr/testify/require"
)
// 创建AI服务的辅助函数
func createAIService(t *testing.T) *AIServices {
aiService := NewAIService(WithLLMService(LLMServiceTypeUITARS))
require.NotNil(t, aiService)