-
Notifications
You must be signed in to change notification settings - Fork 17
Added Context in the terminal #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
any updates @sapatevaibhav |
tauri-plugin-shell = "2" | ||
dirs = "5.0" | ||
chrono = { version = "0.4", features = ["serde"] } | ||
serde = { version = "1.0", features = ["derive"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate key for serde
// src-tauri/src/commands/ai.rs | ||
use serde::{Deserialize, Serialize}; | ||
use std::sync::{Arc, Mutex}; | ||
use tauri::{AppHandle, Manager, State}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused import: Manager
|
||
// Keep only the last N messages to avoid token limit issues | ||
if messages.len() > self.max_messages { | ||
messages.drain(0..messages.len() - self.max_messages); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if message is mutable or immutable it is giving error
.unwrap_or("No response") | ||
.to_string()) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some issues in this file test it locally
Hi @sapatevaibhav @thedevyashsaini as discussed in the #35 (comment) i had added the following changes in the project:
I hope this makes the requirements fullfilled.