Commit Graph
89 Commits
Author SHA1 Message Date
jialinandjialin 9705818b15 fix: wrap fetch for injecting headers 2026-06-03 15:50:06 +08:00
gitlawrandjialin 7bee337554 fix(playground): inject X-Organization-Id on non-umi fetch paths
Playground completions (chat streaming via ``fetchChunkedData``)
and the raw ``fetch()`` calls for image / audio generation skip
umi's ``request`` pipeline and so miss the request interceptor in
``request.extensions.ts`` that pins tenant context. Higress
receives those calls without ``X-Organization-Id`` and the auth
callback falls back to the user's USER-principal id rather than
their active Org, which makes Playground usage invisible from
Org-scoped Usage views even after the backend learned to backfill
``consumer_principal_id``.

Centralise the lookup in ``tenantHeaders()`` next to
``fetchChunkedData`` so both streaming helpers and the four
``fetch()``-direct entry points in ``playground/apis/index.ts``
(image / TTS) attach the header with the same precedence as the
umi interceptor (``createScopeOrgOverride`` first,
``currentOrganizationId`` second). Returns an empty object when
no active org context is set, leaving requests unchanged.
2026-05-25 18:02:31 +08:00
jialinandjialin 0cb260f854 feat: logs history 2026-04-28 14:41:36 +08:00
jialinandjialin 6fccee3711 fix: impoer external components 2026-04-24 14:28:30 +08:00
jialinandjialin 7d75714662 feat: usage 2026-04-22 13:16:48 +08:00
jialinandjialin 43dfc7e1f0 fix: normalize parameter string by removing line-continuation backslashes 2026-03-26 18:20:55 +08:00
jialinandjialin f6d5733183 fix: video gen 2026-03-17 16:35:55 +08:00
jialinandjialin 0ca055b8e8 fix: parser multiple backend pramas on paste 2026-03-17 16:35:55 +08:00
jialinandjialin 9aae2c7f50 fix: use html audio to load stream 2026-03-17 16:35:55 +08:00
jialinandjialin c29ad1270b fix: stt streaming response handler 2026-03-17 16:35:55 +08:00
jialin 0849a2f114 chore: column settings 2026-02-01 20:22:25 +08:00
jialin 7a5c28228b chore: upload a ref audio 2026-01-31 14:06:50 +08:00
jialin ce3a82ddda fix: edit message add image 2025-12-02 14:00:58 +08:00
jialin 03963b736a chore: create, edit image handler 2025-11-12 20:47:34 +08:00
jialin a34c375e2d fix: image response handler 2025-11-12 19:55:31 +08:00
jialin e1e38f0404 fix: chat stream data too long 2025-11-06 15:37:42 +08:00
jialin c467280170 fix: display instance type spec 2025-09-16 11:26:17 +08:00
jialin 6e5a7035c8 feat: cloud options 2025-09-16 11:26:17 +08:00
jialin 0c1057d554 refactor: credential table columns 2025-09-16 11:26:17 +08:00
jialin 3f243129a4 fix: do not extract the error message from chat chunk 2025-08-18 18:22:46 +08:00
jialin eb2cae7a77 fix: break early while reading stream data 2025-08-15 19:12:12 +08:00
jialin 72f7168893 fix: adjust precision for big size 2025-07-29 18:40:29 +08:00
jialin 14d60264c7 fix: wav format audio, #2317 2025-07-16 13:06:01 +08:00
jialin 6943571a6d fix: images did not get cleared after clicking stop 2025-07-04 15:42:03 +08:00
jialin 34af730934 feat: model usage 2025-06-24 16:54:03 +08:00
jialin a161fa953e feat: usage export data 2025-06-09 18:45:47 +08:00
jialin 471e1ae96f feat: upload audio file in chat 2025-06-03 19:58:08 +08:00
jialin ed28bcdfb0 fix: set default spec to form 2025-06-03 15:16:52 +08:00
jialin 6340f1fb54 fix: refresh selection after deleting by batch 2025-05-16 16:07:55 +08:00
jialin 47666b7193 fix: handle api error 2025-04-17 17:58:51 +08:00
jialin d62e43790c chore: extract a model file item 2025-04-08 19:19:41 +08:00
jialin c09503aad8 fix: add backend field in evaluation payload 2025-04-08 14:37:31 +08:00
jialin 939f46c7e6 fix: miss gpu_selector value in catalog 2025-04-03 13:36:09 +08:00
jialin 106ee43171 fix: base64 convert to file for all image type 2025-03-06 20:27:34 +08:00
jialin 36d626c833 chore: ram vram usage in resource 2025-03-06 19:44:35 +08:00
jialin 8a98aef28c chore: image edit invert painting area 2025-03-04 17:52:14 +08:00
jialin 8464e0ea3f feat: add download instance log button 2025-02-27 18:03:28 +08:00
jialin bcbefe29e7 chore: get start from deploying 2025-02-24 11:34:40 +08:00
jialin f1ab927a7e chore: chat hooks 2025-02-19 20:50:32 +08:00
jialin 4498f069f0 feat: render markdown in chat 2025-02-11 14:01:46 +08:00
jialin 1def9a6b19 chore: field description icon 2025-02-10 18:44:21 +08:00
jialin 214c5998c6 fix: image stream data error 2025-01-16 21:51:22 +08:00
jialin b14c01f9f7 fix: expand the model after deploying from catalog 2025-01-16 17:24:37 +08:00
jialin 4a838e7bdb chore: completions error handler 2025-01-16 14:25:03 +08:00
jialin 9553aa944a fix: image progress display 2025-01-15 09:51:29 +08:00
jialin a09403328e fix: do not update when scrolling to view logs 2025-01-10 10:42:41 +08:00
jialin 39a71d51cf fix: image edit ux 2025-01-06 20:45:32 +08:00
jialin e4b1dfc77a chore: audio page keepalive 2024-12-31 11:04:30 +08:00
jialin 0b423a6fe0 chore: image edit api 2024-12-30 08:37:58 +08:00
jialin bca56bfaad chore: painting cache 2024-12-27 14:56:06 +08:00