Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentefelipechile committed Oct 24, 2024
1 parent f6aeddb commit 6b64895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/OpenAIModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ChatGPTModel extends AIModel<AIArguments, AIHandle> {
const image: Image = res.data[0];
const base64Img = Buffer.from(image.b64_json as string, 'base64');

return { image: base64Img, caption: image.revised_prompt || '' };
return { image: base64Img, caption: image.revised_prompt || prompt };
}

public async sendMessage({ sender, prompt, prefix }: AIArguments, handle: AIHandle) {
Expand Down

0 comments on commit 6b64895

Please sign in to comment.