refactor(action-planner): simplify tendencies state hint naming and always follow up on refused candidates

This commit is contained in:
2026-04-25 13:17:23 +08:00
parent 03bae6424e
commit 878fe4dc10
3 changed files with 6 additions and 5 deletions

View File

@@ -112,6 +112,7 @@ object ModelRuntimeRegistry : Configurable, ConfigRegistration<ModelRuntimeRegis
try {
val parsedConfig = parseJsonConfig(root)
applyConfig(parsedConfig)
log.info("Model config updated")
} catch (e: Exception) {
log.error("Error while loading runtime provider config", e)
baseProvider.clear()

View File

@@ -117,7 +117,7 @@ public class OpenAiCompatibleProvider extends ModelProvider {
return messages;
}
String jsonInstruction = "Return only a valid JSON object that matches the requested response schema.";
String jsonInstruction = "Return only a valid JSON object.";
List<Message> patched = new ArrayList<>(messages.size() + 1);
boolean merged = false;
for (Message message : messages) {