Files
httprunner/pkg/uixt/ai/llm.go
lilong.129 3038fb7430 fix: errors
2025-02-09 10:51:03 +08:00

21 lines
403 B
Go

package ai
import "context"
type ILLMService interface {
Call(ctx context.Context, prompt string) (string, error)
}
func NewGPT4oLLMService() (*openaiLLMService, error) {
if err := checkEnv(); err != nil {
return nil, err
}
return &openaiLLMService{}, nil
}
type openaiLLMService struct{}
func (s openaiLLMService) Call(ctx context.Context, prompt string) (string, error) {
return "", nil
}