Skip to content

Commit

Permalink
Better image alt prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Dec 4, 2023
1 parent 28ab417 commit 4dbe04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/Network/Sources/Network/OpenAIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))])])
}
}
Expand Down

0 comments on commit 4dbe04a

Please sign in to comment.