fix: replace null outputs with their keys
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -163,8 +163,8 @@ fn convert_outputs_to_string_map(
|
||||
for (key, value) in outputs {
|
||||
match value {
|
||||
serde_yaml::Value::Null => {
|
||||
// For null, we want to output "null" as a string
|
||||
result.insert(key.clone(), "null".to_string());
|
||||
// For null, use the key as the value
|
||||
result.insert(key.clone(), key.clone());
|
||||
}
|
||||
serde_yaml::Value::String(s) => {
|
||||
result.insert(key.clone(), s.clone());
|
||||
|
||||
Reference in New Issue
Block a user