mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-14 20:08:23 +08:00
21 lines
403 B
Go
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
|
|
}
|