Refactor: apiKey to match dapms
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 3m27s

This commit is contained in:
jade
2026-08-18 16:58:25 +09:00
parent 9f347ef9de
commit c0069c2419

View File

@@ -262,9 +262,10 @@ public class ExecuteService {
headers.put("trace-id", context.requestId());
headers.put("request-id", java.util.UUID.randomUUID().toString());
String apiKey = properties.toolServerApiKey();
if (apiKey != null && !apiKey.isEmpty()) {
headers.put("X-Tool-Server-API-Key", apiKey);
if (apiKey == null || apiKey.isEmpty()) {
apiKey = "tool-server-key";
}
headers.put("X-Tool-Server-API-Key", apiKey);
ObjectNode pageArguments = paginationValidator.normalize(metadata, arguments);
LargeToolResponseService.Collector collector = largeResponses.newCollector(metadata.getName(), context.requestId());