Spelling (#7137)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -161,7 +161,7 @@ impl CursorAgentProvider {
|
||||
}
|
||||
}
|
||||
|
||||
// If no valid result line found, fallback to joining all lines
|
||||
// If no valid result line found, fall back to joining all lines
|
||||
let response_text = lines.join("\n");
|
||||
|
||||
let message_content = vec![MessageContent::text(response_text)];
|
||||
|
||||
@@ -143,7 +143,7 @@ pub fn to_bedrock_tool_result_content_block(
|
||||
bail!("Blob resource content is not supported by Bedrock provider yet")
|
||||
}
|
||||
},
|
||||
RawContent::Audio(..) => bail!("Audio is not not supported by Bedrock provider"),
|
||||
RawContent::Audio(..) => bail!("Audio is not supported by Bedrock provider"),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -597,7 +597,7 @@ where
|
||||
// Skip event type lines
|
||||
continue;
|
||||
} else {
|
||||
// Try to parse as-is in case there's no prefix
|
||||
// Try to parse as-is when there's no prefix
|
||||
&response_str
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ use rmcp::model::{Content, RawContent};
|
||||
const LEAD_WORKER_PROVIDER_NAME: &str = "lead_worker";
|
||||
|
||||
/// A provider that switches between a lead model and a worker model based on turn count
|
||||
/// and can fallback to lead model on consecutive failures
|
||||
/// and can fall back to lead model on consecutive failures
|
||||
pub struct LeadWorkerProvider {
|
||||
lead_provider: Arc<dyn Provider>,
|
||||
worker_provider: Arc<dyn Provider>,
|
||||
|
||||
@@ -295,7 +295,7 @@ impl OAuthFlow {
|
||||
// though it will ultimately only get used once
|
||||
let tx = Arc::new(tokio::sync::Mutex::new(Some(tx)));
|
||||
|
||||
// Setup a server that will receive the redirect, capture the code, and display success/failure
|
||||
// Set up a server that will receive the redirect, capture the code, and display success/failure
|
||||
let app = Router::new().route(
|
||||
"/",
|
||||
get(move |Query(params): Query<HashMap<String, String>>| {
|
||||
|
||||
@@ -113,7 +113,7 @@ impl OllamaInterpreter {
|
||||
Ok(base_url.to_string())
|
||||
}
|
||||
|
||||
fn tool_structured_ouput_format_schema() -> Value {
|
||||
fn tool_structured_output_format_schema() -> Value {
|
||||
json!({
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -282,7 +282,7 @@ Otherwise, if no JSON tool requests are provided, use the no-op tool:
|
||||
let format_instruction = format!("{}\nRequest: {}\n\n", system_prompt, last_assistant_msg);
|
||||
|
||||
// Define the JSON schema for tool call format
|
||||
let format_schema = OllamaInterpreter::tool_structured_ouput_format_schema();
|
||||
let format_schema = OllamaInterpreter::tool_structured_output_format_schema();
|
||||
|
||||
// Determine which model to use for interpretation (from env var or default)
|
||||
let interpreter_model = std::env::var("GOOSE_TOOLSHIM_OLLAMA_MODEL")
|
||||
|
||||
@@ -528,7 +528,7 @@ mod tests {
|
||||
let text = format!("Here is a fake image {}", fake_png_path.to_str().unwrap());
|
||||
assert_eq!(detect_image_path(&text), None);
|
||||
|
||||
// Test with non-existent file
|
||||
// Test with nonexistent file
|
||||
let text = "Here is a fake.png that doesn't exist";
|
||||
assert_eq!(detect_image_path(text), None);
|
||||
|
||||
@@ -573,7 +573,7 @@ mod tests {
|
||||
.to_string()
|
||||
.contains("not a valid image"));
|
||||
|
||||
// Test non-existent file
|
||||
// Test nonexistent file
|
||||
let result = load_image_file("nonexistent.png");
|
||||
assert!(result.is_err());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user