anveesa 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/src/lib.rs +2 -3
- package/src/tui.rs +459 -422
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/src/lib.rs
CHANGED
|
@@ -82,8 +82,7 @@ async fn run_interactive(options: AskOptions) -> Result<()> {
|
|
|
82
82
|
.get(&provider_name)
|
|
83
83
|
.with_context(|| format!("unknown provider '{provider_name}'"))?;
|
|
84
84
|
let _tools_available = matches!(provider, ProviderConfig::OpenAiCompatible(_));
|
|
85
|
-
let images_available = matches!(provider, ProviderConfig::OpenAiCompatible(_));
|
|
86
|
-
let mut images_available = images_available;
|
|
85
|
+
let mut images_available = matches!(provider, ProviderConfig::OpenAiCompatible(_));
|
|
87
86
|
let model = options
|
|
88
87
|
.model
|
|
89
88
|
.clone()
|
|
@@ -2030,7 +2029,7 @@ fn term_width() -> usize {
|
|
|
2030
2029
|
}
|
|
2031
2030
|
|
|
2032
2031
|
/// Cheap fingerprint for deduplication: length + first 64 base64 chars.
|
|
2033
|
-
fn image_fingerprint(img: &ImageAttachment) -> String {
|
|
2032
|
+
pub fn image_fingerprint(img: &ImageAttachment) -> String {
|
|
2034
2033
|
let prefix: String = img.data.chars().take(64).collect();
|
|
2035
2034
|
format!("{}:{}", img.data.len(), prefix)
|
|
2036
2035
|
}
|