mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-26 23:50:17 +00:00
style(gemini_oauth): rustfmt formatting [skip-regression-check]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -1007,10 +1007,7 @@ impl GeminiOauthProvider {
|
||||
fn curate_contents(contents: &[serde_json::Value]) -> Vec<serde_json::Value> {
|
||||
let mut curated = Vec::new();
|
||||
for entry in contents {
|
||||
let role = entry
|
||||
.get("role")
|
||||
.and_then(|r| r.as_str())
|
||||
.unwrap_or("");
|
||||
let role = entry.get("role").and_then(|r| r.as_str()).unwrap_or("");
|
||||
|
||||
if role != "model" {
|
||||
// Always keep non-model turns (user, tool-response)
|
||||
@@ -1040,10 +1037,7 @@ impl GeminiOauthProvider {
|
||||
.get("thought")
|
||||
.and_then(|t| t.as_bool())
|
||||
.unwrap_or(false);
|
||||
if !is_thought
|
||||
&& text.is_empty()
|
||||
&& part.get("functionCall").is_none()
|
||||
{
|
||||
if !is_thought && text.is_empty() && part.get("functionCall").is_none() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user