mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(action-planner): simplify tendencies state hint naming and always follow up on refused candidates
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user