Run leptosfmt
This commit is contained in:
parent
19898b5d02
commit
5b12762511
12 changed files with 44 additions and 45 deletions
|
@ -56,10 +56,15 @@ args = ["leptos", "watch", "--hot-reload"]
|
|||
|
||||
[tasks.docset]
|
||||
workspace = false
|
||||
script = '''
|
||||
cargo docset --workspace --platform-family redvault-ai \
|
||||
&& cp -r target/docset/redvault-ai.docset ~/.local/share/Zeal/Zeal/docsets/
|
||||
'''
|
||||
dependencies = ["make-docset", "cp-docset"]
|
||||
|
||||
[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]
|
||||
command = "cargo"
|
||||
|
|
|
@ -49,14 +49,9 @@ fn ChatMessageBubble(
|
|||
|
||||
let inner_p = move || {
|
||||
if edit_mode.get() {
|
||||
view! {
|
||||
|
||||
<p inner_html=move || { msg_str() }></p>
|
||||
}
|
||||
view! { <p inner_html=move || { msg_str() }></p> }
|
||||
} else {
|
||||
view! {
|
||||
<p inner_html=move || { md_str() }></p>
|
||||
}
|
||||
view! { <p inner_html=move || { md_str() }></p> }
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
hardware:
|
||||
system_resources:
|
||||
ram: 48G
|
||||
vram: 30G
|
||||
models:
|
||||
model_specs:
|
||||
- name: "tabby-code"
|
||||
port: 18080
|
||||
# internal_port: 28080 # Optional
|
||||
|
|
|
@ -22,7 +22,7 @@ impl AppConfig {
|
|||
if model.internal_port.is_none() {
|
||||
model.internal_port = Some(
|
||||
openport::pick_random_unused_port()
|
||||
.expect(&format!("No open port found for {:?}", model)),
|
||||
.unwrap_or_else(|| panic!("No open port found for {:?}", model)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
use anyhow::Error as AnyError;
|
||||
use axum::{http, response::IntoResponse};
|
||||
use hyper;
|
||||
use reqwest;
|
||||
use reqwest_middleware;
|
||||
use std::io;
|
||||
use thiserror::Error;
|
||||
use anyhow::Error as AnyError;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum AppError {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use llama_proxy_man::{config::AppConfig, logging, start_server};
|
||||
use tokio;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
|
|
|
@ -3,7 +3,7 @@ pub fn parse_size(size_str: &str) -> Option<u64> {
|
|||
let mut unit = String::new();
|
||||
|
||||
for c in size_str.chars() {
|
||||
if c.is_digit(10) || c == '.' {
|
||||
if c.is_ascii_digit() || c == '.' {
|
||||
num.push(c);
|
||||
} else {
|
||||
unit.push(c);
|
||||
|
|
Loading…
Add table
Reference in a new issue