danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.16k stars 3.19k forks source link

[Bug]: There is an issue with Dalle3's image output. #4467

Closed Passerby1011 closed 4 weeks ago

Passerby1011 commented 4 weeks ago

What happened?

Whenever I use Dalle3 to generate images, the images fail to output correctly.

Steps to Reproduce

To use DALL·E 3 for image generation in agents or plugins. Could you please tell me where I should make adjustments to solve the problem?

What browsers are you seeing the problem on?

No response

Relevant log output

2024-10-19T17:45:57.813Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-10-19T17:46:27.361Z debug: [DALL-E-3]
{
  imageName: "img-ac2a033b-caef-4c59-84a0-c360761889ba.png",
  imageBasename: "generated_00.png",
  imageExt: ".png",
  extension: "png",
  theImageUrl: "https://dalleprodsec.blob.core.windows.net/private/images/eab53ca0-38ce-4c4f-9332-7b2a956189cd/gener... [truncated]",
    data.url: "https://dalleprodsec.blob.core.windows.net/private/images/eab53ca0-38ce-4c4f-9332-7b2a956189cd/gener... [truncated]",
    data.revised_prompt: "A beautiful daytime cityscape featuring modern architecture. The image should have a cool color pale... [truncated]",
}
2024-10-19T17:46:32.952Z debug: [spendTokens] conversationId: e9658a65-6a8b-42fd-bcc7-e94ebc30636f | Context: message | Token usage:
{
  promptTokens: 681,
  completionTokens: NaN,
}
2024-10-19T17:46:32.973Z error: [spendTokens] Transaction validation failed: rawAmount: Cast to Number failed for value "NaN" (type number) at path "rawAmount", tokenValue: Cast to N... [truncated]
2024-10-19T17:46:32.973Z debug: [spendTokens] conversationId: e9658a65-6a8b-42fd-bcc7-e94ebc30636f | Context: message | Token usage:
{
  promptTokens: 902,
  completionTokens: 77,
}
2024-10-19T17:46:32.989Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-10-19T17:46:33.010Z debug: [spendTokens] No transactions incurred against balance
2024-10-19T17:46:33.039Z debug: [AgentController] Request closed

Screenshots

image image

Code of Conduct