Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,6 @@ public <T> T createPayload(String action, Map<String, String> parameters) {
jsonObject.addProperty("stream", true);
payload = jsonObject.toString();
}
// Log payload for debugging

log.info("=== PAYLOAD DEBUG === Action: {} | Payload: {}", action, payload);

return (T) payload;
}
return (T) parameters.get("http_body");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class ContextManagerContext {
* Additional parameters for context processing
*/
@Builder.Default
private Map<String, Object> parameters = new HashMap<>();
private Map<String, String> parameters = new HashMap<>();

/**
* Get the total token count for the current context.
Expand Down Expand Up @@ -174,7 +174,7 @@ public Object getParameter(String key) {
* @param key the parameter key
* @param value the parameter value
*/
public void setParameter(String key, Object value) {
public void setParameter(String key, String value) {
if (parameters == null) {
parameters = new HashMap<>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ public AgentMLInput(XContentParser parser, FunctionName functionName) throws IOE
tenantId = parser.textOrNull();
break;
case PARAMETERS_FIELD:
Map<String, String> parameters = StringUtils.getParameterMap(parser.map());
Map<String, Object> parameterObjs = parser.map();
Map<String, String> parameters = StringUtils.getParameterMap(parameterObjs);
// Extract context_management from parameters
if (parameterObjs.containsKey("context_management")) {
contextManagementName = (String) parameterObjs.get("context_management");
}
inputDataset = new RemoteInferenceInputDataSet(parameters);
break;
case ASYNC_FIELD:
Expand Down

This file was deleted.

Loading
Loading