We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d130a commit 91b674aCopy full SHA for 91b674a
1 file changed
events/messageCreate.js
@@ -63,8 +63,8 @@ async function buildConversationLog(message, client) {
63
conversationLog.push({ role: 'user', content: transcribedContent });
64
} else if (client.currentModel === GPT_V && message.attachments.size > 0) {
65
const imageAttachment = message.attachments.first();
66
- const imageUrl = imageAttachment.url.split('?')[0];
67
- console.log(`Cleaned Image URL: ${imageUrl}`);
+ const imageUrl = imageAttachment.url; // Keep the entire URL including query parameters
+ console.log(`Image URL: ${imageUrl}`);
68
conversationLog.push({
69
role: 'user',
70
content: [{ type: "text", text: message.content }, { type: "image_url", image_url: imageUrl }],
0 commit comments