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]
|
[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"
|
||||||
|
|
|
@ -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>
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue