fix: enable playground media task routes
This commit is contained in:
1 parent
eda7312388
commit
7a996755b2
1 file changed
+1
-1
+1
-1
@@ -34,7 +34,7 @@ public class PlaygroundController {
|
|||||||
return gateway.executeChat(requireKey(request, keyId), input, idempotencyKey, response);
|
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<Map<String, Object>> createTask(@PathVariable String keyId, @PathVariable String type,
|
public ResponseEntity<Map<String, Object>> createTask(@PathVariable String keyId, @PathVariable String type,
|
||||||
@RequestBody Map<String, Object> input, HttpServletRequest request) {
|
@RequestBody Map<String, Object> input, HttpServletRequest request) {
|
||||||
return ResponseEntity.accepted().body(Map.of("task", tasks.createForKey(requireKey(request, keyId), type, input)));
|
return ResponseEntity.accepted().body(Map.of("task", tasks.createForKey(requireKey(request, keyId), type, input)));
|
||||||
|
|||||||
Reference in new issue
Block a user