Run leptosfmt

This commit is contained in:
Tristan D. 2025-02-11 01:02:16 +01:00
parent 19898b5d02
commit 5b12762511
Signed by: tristan
SSH key fingerprint: SHA256:3RU4RLOoM8oAjFU19f1W6t8uouZbA7GWkaSW6rjp1k8
12 changed files with 44 additions and 45 deletions

View file

@ -56,10 +56,15 @@ args = ["leptos", "watch", "--hot-reload"]
[tasks.docset] [tasks.docset]
workspace = false workspace = false
script = ''' dependencies = ["make-docset", "cp-docset"]
cargo docset --workspace --platform-family redvault-ai \
&& cp -r target/docset/redvault-ai.docset ~/.local/share/Zeal/Zeal/docsets/ [tasks.make-docset]
''' workspace = false
script = "cargo docset --workspace --platform-family redvault-ai "
[tasks.cp-docset]
workspace = false
script = "cp -r target/docset/redvault-ai.docset ~/.local/share/Zeal/Zeal/docsets/"
[tasks.watch-test] [tasks.watch-test]
command = "cargo" command = "cargo"

View file

@ -49,14 +49,9 @@ fn ChatMessageBubble(
let inner_p = move || { let inner_p = move || {
if edit_mode.get() { if edit_mode.get() {
view! { view! { <p inner_html=move || { msg_str() }></p> }
<p inner_html=move || { msg_str() }></p>
}
} else { } else {
view! { view! { <p inner_html=move || { md_str() }></p> }
<p inner_html=move || { md_str() }></p>
}
} }
}; };

View file

@ -1,7 +1,7 @@
hardware: system_resources:
ram: 48G ram: 48G
vram: 30G vram: 30G
models: model_specs:
- name: "tabby-code" - name: "tabby-code"
port: 18080 port: 18080
# internal_port: 28080 # Optional # internal_port: 28080 # Optional

View file

@ -22,7 +22,7 @@ impl AppConfig {
if model.internal_port.is_none() { if model.internal_port.is_none() {
model.internal_port = Some( model.internal_port = Some(
openport::pick_random_unused_port() openport::pick_random_unused_port()
.expect(&format!("No open port found for {:?}", model)), .unwrap_or_else(|| panic!("No open port found for {:?}", model)),
); );
} }
} }

View file

@ -1,10 +1,10 @@
use anyhow::Error as AnyError;
use axum::{http, response::IntoResponse}; use axum::{http, response::IntoResponse};
use hyper; use hyper;
use reqwest; use reqwest;
use reqwest_middleware; use reqwest_middleware;
use std::io; use std::io;
use thiserror::Error; use thiserror::Error;
use anyhow::Error as AnyError;
#[derive(Error, Debug)] #[derive(Error, Debug)]
pub enum AppError { pub enum AppError {

View file

@ -1,5 +1,4 @@
use llama_proxy_man::{config::AppConfig, logging, start_server}; use llama_proxy_man::{config::AppConfig, logging, start_server};
use tokio;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {

View file

@ -3,7 +3,7 @@ pub fn parse_size(size_str: &str) -> Option<u64> {
let mut unit = String::new(); let mut unit = String::new();
for c in size_str.chars() { for c in size_str.chars() {
if c.is_digit(10) || c == '.' { if c.is_ascii_digit() || c == '.' {
num.push(c); num.push(c);
} else { } else {
unit.push(c); unit.push(c);