mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 00:54:21 +01:00
@@ -8,7 +8,7 @@ use std::time::{Duration, Instant};
|
|||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use ewebsock::{WsEvent, WsMessage};
|
use ewebsock::{WsEvent, WsMessage};
|
||||||
use tracing::{debug, trace, error};
|
use tracing::{debug, error, trace};
|
||||||
|
|
||||||
use super::subs_debug::SubsDebug;
|
use super::subs_debug::SubsDebug;
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ pub fn summary_cards_ui(ui: &mut egui::Ui, s: &Summary, prev: Option<&Summary>)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the last row wasn't full, close it anyway
|
// If the last row wasn't full, close it anyway
|
||||||
if items_len % cols != 0 {
|
if !items_len.is_multiple_of(cols) {
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -145,11 +145,6 @@ pub enum ToolCalls {
|
|||||||
Invalid(InvalidToolCall),
|
Invalid(InvalidToolCall),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
||||||
struct ErrorCall {
|
|
||||||
error: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ToolCalls {
|
impl ToolCalls {
|
||||||
pub fn to_api(&self) -> FunctionCall {
|
pub fn to_api(&self) -> FunctionCall {
|
||||||
FunctionCall {
|
FunctionCall {
|
||||||
|
|||||||
Reference in New Issue
Block a user