Trim space when generating title
This commit is contained in:
@@ -186,6 +186,7 @@ Title: A brief introduction
|
||||
|
||||
response = strings.TrimPrefix(response, "Title: ")
|
||||
response = strings.Trim(response, "\"")
|
||||
response = strings.TrimSpace(response)
|
||||
|
||||
return response, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user