mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 16:37:46 +08:00
fix(ai): satisfy response history clippy checks
This commit is contained in:
@@ -329,17 +329,12 @@ pub fn record_converted_response_history(
|
|||||||
{
|
{
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
let Some(response_id) = response
|
let response_id = response
|
||||||
.get("id")
|
.get("id")
|
||||||
.and_then(Value::as_str)
|
.and_then(Value::as_str)
|
||||||
.map(str::trim)
|
.map(str::trim)
|
||||||
.filter(|value| !value.is_empty())
|
.filter(|value| !value.is_empty())?;
|
||||||
else {
|
let request = report_context.get("original_request_body")?;
|
||||||
return None;
|
|
||||||
};
|
|
||||||
let Some(request) = report_context.get("original_request_body") else {
|
|
||||||
return None;
|
|
||||||
};
|
|
||||||
let history_scope = report_context
|
let history_scope = report_context
|
||||||
.get("api_key_id")
|
.get("api_key_id")
|
||||||
.and_then(Value::as_str)
|
.and_then(Value::as_str)
|
||||||
|
|||||||
Reference in New Issue
Block a user