From 7a996755b2755661169fc707f948cc3987b87c45 Mon Sep 17 00:00:00 2001 From: WangLX <519407855@qq.com> Date: Tue, 29 Sep 2026 01:50:32 +0800 Subject: [PATCH] fix: enable playground media task routes --- .../com/moyi/controlplane/gateway/PlaygroundController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control-plane-java/src/main/java/com/moyi/controlplane/gateway/PlaygroundController.java b/control-plane-java/src/main/java/com/moyi/controlplane/gateway/PlaygroundController.java index 2ce8667..c8d384f 100644 --- a/control-plane-java/src/main/java/com/moyi/controlplane/gateway/PlaygroundController.java +++ b/control-plane-java/src/main/java/com/moyi/controlplane/gateway/PlaygroundController.java @@ -34,7 +34,7 @@ public class PlaygroundController { return gateway.executeChat(requireKey(request, keyId), input, idempotencyKey, response); } - @PostMapping(value="/{type:3d|video}/tasks", consumes="application/json") + @PostMapping(value="/{type:3d|video|image|audio}/tasks", consumes="application/json") public ResponseEntity> createTask(@PathVariable String keyId, @PathVariable String type, @RequestBody Map input, HttpServletRequest request) { return ResponseEntity.accepted().body(Map.of("task", tasks.createForKey(requireKey(request, keyId), type, input)));