Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dotnet/EcencyApi/Handlers/PrivateApi.Misc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@ public static async Task AiGenerateImage(HttpContext ctx)
{
["us"] = username,
};
MiscCopyIfPresent(data, body, "prompt", "aspect_ratio", "power");
// idempotency_key lets a retry recover the same paid generation instead of
// charging a second one; the upstream validates its format itself.
MiscCopyIfPresent(data, body, "prompt", "aspect_ratio", "power", "idempotency_key");
Comment thread
coderabbitai[bot] marked this conversation as resolved.
// AI image generation legitimately takes 10-60s+; keep it long.
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
await Upstream.Pipe(
ApiClient.ApiRequest("ai-image-generate", HttpMethod.Post, null, data, null, 120000), ctx);
Expand Down
Loading