-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Add Sub2API async image channel #4778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Fankouzu
wants to merge
88
commits into
QuantumNous:main
from
Fankouzu:feature/sub2api-async-channel
Closed
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
3decb33
feat(AliAdaptor): enhance video input structure and add PixVerse support
Fankouzu f4afb2d
Merge pull request #1 from Fankouzu/custom/pixverse-billing
Fankouzu 9579270
chore(web): bump @lobehub/icons, VisActor vchart, add antd peer
Fankouzu e321282
Merge pull request #2 from Fankouzu:chore/bump-lobehub-icons-visactor…
Fankouzu 2bfc9c3
fix(doubao): preserve draft_task id in video content items
Fankouzu 3aaedc2
Merge pull request #3 from Fankouzu/feat/doubao-seedance-draft-task-c…
Fankouzu 6162fdb
Merge branch 'QuantumNous:main' into main
Fankouzu 6b33a38
fix(doubao): skip appending prompt text when content uses draft_task
Fankouzu 49a3baa
Merge pull request #4 from Fankouzu/fix/doubao-seedance-draft-no-text…
Fankouzu 137cd7f
Merge upstream/main into main: resolve web deps (keep visactor v2, an…
Fankouzu 4bac883
feat(channel): add PingXingShiJie async task channel (fork of task/do…
Fankouzu 80a1ef3
feat(pingxingshijie): align channel 58 with /v2 APIs, envelope, and a…
Fankouzu fe9ea68
fix(relay): use Distribute relay_mode for GET /v1/images/generations/…
Fankouzu f1fb6f0
fix(pingxingshijie): map image task done status and data[].url for Se…
Fankouzu 8809ba3
fix(task): image result_url recovery, upstream_kind in API, admin ima…
Fankouzu 0328b85
fix(relay): accept image field as string or URL array in TaskSubmitReq
Fankouzu 9fa4128
fix(pingxingshijie): avoid empty envelope data breaking ConvertToOpen…
Fankouzu 49ba8f5
feat(pingxingshijie): pass full upstream JSON via metadata.upstream /…
Fankouzu 35cbcb0
fix(pingxingshijie): extract video create task id from task_id and ne…
Fankouzu 0771812
fix(pingxingshijie): Seedance 1.5 Pro draft_task upscale forwarding a…
Fankouzu ee071b8
Merge pull request #5 from Fankouzu/feature/channel-pingxingshijie-task
Fankouzu cb72e2e
feat(pingxingshijie): map channel 58 to Volc relay for chat, unwrap e…
Fankouzu 7288053
fix(pingxingshijie): use /v1/chat/completions upstream for channel 58…
Fankouzu d077cd7
fix(pingxingshijie): update upstream path for channel 58 to /v2/chat/…
Fankouzu f4b3c52
Merge pull request #6 from Fankouzu/feature/pingxingshijie-text-chann…
Fankouzu 9f26d60
Merge upstream/main
Fankouzu 1ee1935
Merge origin/main
Fankouzu 8caca48
feat: add comprehensive Token Management API reference documentation
Fankouzu e89b74c
feat: add Kie task adaptor
Fankouzu cd369ae
feat: register Kie channel type
Fankouzu 2deeaf9
feat: wire Kie task relay
Fankouzu 490e869
feat: expose Kie models in registry
Fankouzu ab34e53
feat: add Kie channel option
Fankouzu e6a6b51
feat: add Kie channel logo
Fankouzu 9965d31
fix: stabilize task billing ratios
Fankouzu 6105339
fix: preserve task provider metadata
Fankouzu ed4cc98
fix: sync PingXingShiJie task adapter
Fankouzu cdece92
fix: align PingXingShiJie image endpoint
Fankouzu 0d5f32b
fix: scale Kie image billing by resolution
Fankouzu 63f898e
fix: preserve task request metadata fields
Fankouzu cf2ac39
Merge pull request #7 from Fankouzu/sync/pingxingshijie-upstream
Fankouzu 9a7e171
Merge origin/main into feature/kie-ai-channel
Fankouzu 56db688
Merge pull request #8 from Fankouzu/feature/kie-ai-channel
Fankouzu 9927a1f
Merge upstream/main into main
Fankouzu 03064d2
fix(ui): add default channel labels for PingXingShiJie and KieAI
Fankouzu 699b7f0
fix(ui): render external channel logo URLs
Fankouzu c1faa38
Merge pull request #9 from Fankouzu/fix/default-channel-58-59-logos
Fankouzu 08d6d03
feat(logs): extract task media results
Fankouzu a53db1f
feat(logs): add task media results dialog
Fankouzu b925361
feat(logs): show task media results in table
Fankouzu 4e1ca77
feat(i18n): add task media result labels
Fankouzu f039ab0
feat(i18n): add task media result translations
Fankouzu 620aea3
Merge pull request #10 from Fankouzu/feat/default-task-media-results
Fankouzu ccb29df
feat(distributor): update default model to use taskpxsj.AssetPlacehol…
Fankouzu bd7e62c
feat(image-edits): pass JSON requests through to OpenAI
Fankouzu b0a34d7
fix(image): add images field to ImageRequest for JSON edits
Fankouzu eb2413d
feat(image-edits): stream SSE responses to prevent proxy timeout
Fankouzu e5fa07e
fix(image): uncomment Stream field in ImageRequest
Fankouzu c1831f6
fix(image-edits): return empty usage instead of nil to prevent panic
Fankouzu 324b78b
fix(image-edits): parse usage from last data: line in SSE
Fankouzu ca265f3
fix(build): use lastDataLine instead of undefined dataLine
Fankouzu 7648a73
Merge pull request #11 from Fankouzu/feat/image-edits-json-support
Fankouzu 1094ebe
feat(channel): add fal.ai async task channel
Fankouzu e5385ee
fix(frontend): register FalAI(60) in channel type picker
Fankouzu 6a5acd7
fix(frontend): register FalAI(60) in classic theme channel picker
Fankouzu ae019f8
fix(frontend): add Fal.ai(60) channel display in both default and cla…
Fankouzu 28873b3
fix(frontend): use Fal.Color component from @lobehub/icons/es/Fal for…
Fankouzu 5d3b07c
fix(fal): 6x3 pricing matrix replaces single quality multipliers
Fankouzu 32ea6df
docs: add fal.ai channel usage guide with complete pricing matrix
Fankouzu be21cff
Merge pull request #12 from Fankouzu/feat/fal-ai-channel
Fankouzu e1a8aa9
fix(fal): detect error responses and stop polling on failure
Fankouzu 8c345ae
fix(fal): handle array format in detail field from FastAPI errors
Fankouzu 8fea1ac
fix(fal): skip transient detail messages (in progress, in queue) from…
Fankouzu e0f8d59
Merge pull request #13 from Fankouzu/fix/fal-ai-error-polling
Fankouzu ac3911d
Route long GPT image jobs through async Sub2API
Fankouzu 91f868f
Expose Sub2API async in the classic channel picker
Fankouzu 8efe079
Expose Sub2API async models to channel metadata
Fankouzu f467125
Prevent classic channel picker from rendering an undefined icon
Fankouzu e5d621c
Register async image route with the main relay router
Fankouzu 7c544aa
Target Sub2API async image endpoint
Fankouzu 7c7f340
Bridge Sub2API sync images behind async tasks
Fankouzu 7970e29
Avoid inline image payloads in Sub2API task fetch
Fankouzu b61529a
Return Sub2API image base64 from task fetch
Fankouzu f43fc80
Shape Sub2API image task results like OpenAI images
Fankouzu b14ade7
Add pricing tables for t2i and i2i image generation models
Fankouzu 0510b7d
Preview Sub2API base64 image task results
Fankouzu 43767e8
Address async channel review risks
Fankouzu 041f99f
Merge upstream main to clear PR conflicts
Fankouzu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package common | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/QuantumNous/new-api/constant" | ||
| ) | ||
|
|
||
| func TestChannelType2APITypeMapsSub2APIAsyncToOpenAI(t *testing.T) { | ||
| apiType, ok := ChannelType2APIType(constant.ChannelTypeSub2APIAsync) | ||
| if !ok { | ||
| t.Fatal("expected Sub2API-async channel type to be known") | ||
| } | ||
| if apiType != constant.APITypeOpenAI { | ||
| t.Fatalf("api type = %d, want %d", apiType, constant.APITypeOpenAI) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.