Skip to content
Merged
Show file tree
Hide file tree
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: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout main branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: main
fetch-depth: 0
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
git push origin ${{ steps.version.outputs.new_version }}

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v2.5.0
with:
tag_name: ${{ steps.version.outputs.new_version }}
name: Release ${{ steps.version.outputs.new_version }}
Expand Down
2 changes: 1 addition & 1 deletion convex/batchProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { v } from "convex/values"
import { internal } from "./_generated/api"
import { internalAction } from "./_generated/server"
import {
POLLINATIONS_FETCH_TIMEOUT_MS,
buildPollinationsUrl,
calculateBackoffDelay,
cropDirtberryImageBuffer,
Expand All @@ -40,7 +41,6 @@ const POLLINATIONS_RETRY_CONFIG: RetryConfig = {
baseDelayMs: 2000,
maxDelayMs: 30000,
}
const POLLINATIONS_FETCH_TIMEOUT_MS = 45_000
const MAX_POLLINATIONS_ATTEMPTS = POLLINATIONS_RETRY_CONFIG.maxRetries + 1
const ENABLE_DEV_GENERATION_MOCK = process.env.CONVEX_ENABLE_DEV_GENERATION_MOCK === "true"
const MOCK_PNG_BASE64 =
Expand Down
1 change: 1 addition & 0 deletions convex/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export { decryptApiKey } from "./crypto"
// Pollinations API utilities
export {
POLLINATIONS_BASE_URL,
POLLINATIONS_FETCH_TIMEOUT_MS,
buildPollinationsUrl,
classifyHttpError,
classifyApiError,
Expand Down
1 change: 1 addition & 0 deletions convex/lib/pollinations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/** Pollinations API base URL */
export const POLLINATIONS_BASE_URL = "https://gen.pollinations.ai"
export const POLLINATIONS_FETCH_TIMEOUT_MS = 10 * 60 * 1000
Comment thread
Simplereally marked this conversation as resolved.

/** Video model IDs - these are the only models that support duration, aspectRatio, audio, and lastFrameImage */
const VIDEO_MODELS = ["veo", "seedance", "seedance-pro", "wan", "grok-video"] as const
Expand Down
2 changes: 1 addition & 1 deletion convex/singleGenerationProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type { Id } from "./_generated/dataModel"
import { internal } from "./_generated/api"
import { action, internalAction, type ActionCtx } from "./_generated/server"
import {
POLLINATIONS_FETCH_TIMEOUT_MS,
buildPollinationsUrl,
calculateBackoffDelay,
cropDirtberryImageBuffer,
Expand All @@ -41,7 +42,6 @@ const POLLINATIONS_RETRY_CONFIG: RetryConfig = {
baseDelayMs: 2000,
maxDelayMs: 30000,
}
const POLLINATIONS_FETCH_TIMEOUT_MS = 45_000
const MAX_POLLINATIONS_ATTEMPTS = POLLINATIONS_RETRY_CONFIG.maxRetries + 1

/**
Expand Down
Loading