From 7d0c6671bba0fa16f15d5874c7d799a740d5fb08 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 12 Mar 2023 13:24:19 +0100 Subject: [PATCH] Further tweaks to OpenAI hashtags prompts close #1222 --- Packages/Network/Sources/Network/OpenAIClient.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/Network/Sources/Network/OpenAIClient.swift b/Packages/Network/Sources/Network/OpenAIClient.swift index ae6ab508..90950b30 100644 --- a/Packages/Network/Sources/Network/OpenAIClient.swift +++ b/Packages/Network/Sources/Network/OpenAIClient.swift @@ -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: "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) + return ChatRequest(content: "Add relevant camel-cased 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. Don't try to search for context or add hashtags of there is not enough context: \(input)", temperature: 0.2) + return ChatRequest(content: "Return the input with added camel-cased 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):