Better OpenAI hashtags prompts

This commit is contained in:
Thomas Ricouard 2023-03-12 12:38:05 +01:00
parent e52712383f
commit f0e9b0ca26

View file

@ -64,9 +64,9 @@ public struct OpenAIClient {
case let .correct(input):
return ChatRequest(content: "Fix the spelling and grammar mistakes in the following text: \(input)", temperature: 0.2)
case let .addTags(input):
return ChatRequest(content: "Replace relevant words with Twitter hashtags in the following text while keeping the input same. Maximum of 5 hashtags: \(input)", temperature: 0.1)
return ChatRequest(content: "Add relevant hashtags in the following text. Don't try to search for context or add hashtags of there is not enough context: \(input)", temperature: 0.1)
case let .insertTags(input):
return ChatRequest(content: "Return the input with added Twitter hashtags at the end of the input with a maximum of 5 hashtags: \(input)", temperature: 0.2)
return ChatRequest(content: "Return the input with added Twitter hashtags at the end of the input. Don't try to search for context or add hashtags of there is not enough context: \(input)", temperature: 0.2)
case let .shorten(input):
return ChatRequest(content: "Make a shorter version of this text: \(input)", temperature: 0.5)
case let .emphasize(input):