From 4dbe04a5d4647d6d0f5ec5648676894f2c9f509b Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 4 Dec 2023 20:36:15 +0100 Subject: [PATCH] Better image alt prompt --- Packages/Network/Sources/Network/OpenAIClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Network/Sources/Network/OpenAIClient.swift b/Packages/Network/Sources/Network/OpenAIClient.swift index 1263ed30..2b813ca1 100644 --- a/Packages/Network/Sources/Network/OpenAIClient.swift +++ b/Packages/Network/Sources/Network/OpenAIClient.swift @@ -96,7 +96,7 @@ public struct OpenAIClient { case let .emphasize(input): ChatRequest(content: "Make this text catchy, more fun: \(input)", temperature: 1) case let .imageDescription(image): - VisionRequest(messages: [.init(content: [.init(type: "text", text: "What’s in this image?", imageUrl: nil) + VisionRequest(messages: [.init(content: [.init(type: "text", text: "What’s in this image? Be brief, it's for image alt description on a social network. Don't write in the first person.", imageUrl: nil) , .init(type: "image_url", text: nil, imageUrl: .init(url: image))])]) } }