Update openai.go

This commit is contained in:
2024-05-04 20:09:52 +02:00
committed by GitHub
parent 4e1c25b812
commit 8631763220

View File

@ -24,10 +24,6 @@ func GenerateGPT4Response(prompt string, author string) (string, error) {
return "", fmt.Errorf("prompt is too long")
}
// Check if the prompt is too short
if len(prompt) < 10 {
return "", fmt.Errorf("prompt is too short")
}
// Add additional information to the system message
var additionalInfo string