Propagate enums from prompt-target to bolt-fc (#56)

This commit is contained in:
Adil Hafeez 2024-09-17 12:03:21 -07:00 committed by GitHub
parent 63143fbd01
commit 8a265de7c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -300,6 +300,7 @@ impl StreamContext {
parameter_type: entity.parameter_type.clone(),
description: entity.description.clone(),
required: entity.required,
enum_values: entity.enum_values.clone(),
};
properties.insert(entity.name.clone(), param);
}
@ -326,7 +327,7 @@ impl StreamContext {
let msg_body = match serde_json::to_string(&chat_completions) {
Ok(msg_body) => {
debug!("msg_body: {}", msg_body);
debug!("bolt-fc request body content: {}", msg_body);
msg_body
}
Err(e) => {