mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-07-30 06:32:17 +00:00
chore: remove debug logging, keep defensive strip_trailing_empty_assistant
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -464,24 +464,6 @@ impl LlmDriver for OpenAIDriver {
|
||||
(Some(request.max_tokens), None)
|
||||
};
|
||||
|
||||
// Debug: log message structure for troubleshooting Copilot proxy issues
|
||||
for (i, msg) in oai_messages.iter().enumerate() {
|
||||
let tc_info = msg.tool_calls.as_ref().map(|tcs| {
|
||||
tcs.iter()
|
||||
.map(|tc| format!("{}:{}", tc.id, tc.function.name))
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ")
|
||||
});
|
||||
debug!(
|
||||
idx = i,
|
||||
role = %msg.role,
|
||||
has_content = msg.content.is_some(),
|
||||
tool_call_id = ?msg.tool_call_id,
|
||||
tool_calls = ?tc_info,
|
||||
"OAI message"
|
||||
);
|
||||
}
|
||||
|
||||
let mut oai_request = OaiRequest {
|
||||
model: request.model.clone(),
|
||||
messages: oai_messages,
|
||||
|
||||
Reference in New Issue
Block a user