Refactor: apiKey to match dapms
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 3m27s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 3m27s
This commit is contained in:
@@ -262,9 +262,10 @@ public class ExecuteService {
|
|||||||
headers.put("trace-id", context.requestId());
|
headers.put("trace-id", context.requestId());
|
||||||
headers.put("request-id", java.util.UUID.randomUUID().toString());
|
headers.put("request-id", java.util.UUID.randomUUID().toString());
|
||||||
String apiKey = properties.toolServerApiKey();
|
String apiKey = properties.toolServerApiKey();
|
||||||
if (apiKey != null && !apiKey.isEmpty()) {
|
if (apiKey == null || apiKey.isEmpty()) {
|
||||||
headers.put("X-Tool-Server-API-Key", apiKey);
|
apiKey = "tool-server-key";
|
||||||
}
|
}
|
||||||
|
headers.put("X-Tool-Server-API-Key", apiKey);
|
||||||
|
|
||||||
ObjectNode pageArguments = paginationValidator.normalize(metadata, arguments);
|
ObjectNode pageArguments = paginationValidator.normalize(metadata, arguments);
|
||||||
LargeToolResponseService.Collector collector = largeResponses.newCollector(metadata.getName(), context.requestId());
|
LargeToolResponseService.Collector collector = largeResponses.newCollector(metadata.getName(), context.requestId());
|
||||||
|
|||||||
Reference in New Issue
Block a user