This commit is contained in:
@@ -223,7 +223,7 @@ impl ProjectSettings {
|
|||||||
self.open = true;
|
self.open = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn close(&mut self) {
|
pub fn _close(&mut self) {
|
||||||
self.open = false;
|
self.open = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ impl ContentAI {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ui_summarise(&mut self, ui: &mut egui::Ui, project: &mut ProjectSettings) {
|
fn ui_summarise(&mut self, ui: &mut egui::Ui, _project: &mut ProjectSettings) {
|
||||||
if let ContentAI::Summarise {
|
if let ContentAI::Summarise {
|
||||||
content,
|
content,
|
||||||
result,
|
result,
|
||||||
@@ -466,12 +466,14 @@ struct StreamingChatResponse {
|
|||||||
struct StreamingChoice {
|
struct StreamingChoice {
|
||||||
delta: Delta,
|
delta: Delta,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
#[allow(unused)]
|
||||||
finish_reason: Option<String>,
|
finish_reason: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
struct Delta {
|
struct Delta {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
#[allow(unused)]
|
||||||
role: Option<String>,
|
role: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
content: Option<String>,
|
content: Option<String>,
|
||||||
@@ -485,10 +487,12 @@ struct Message {
|
|||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
struct ChatResponse {
|
struct ChatResponse {
|
||||||
|
#[allow(unused)]
|
||||||
choices: Vec<Choice>,
|
choices: Vec<Choice>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
struct Choice {
|
struct Choice {
|
||||||
|
#[allow(unused)]
|
||||||
message: Message,
|
message: Message,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user