summaryrefslogtreecommitdiffstats
path: root/src/client/model.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-25 10:15:54 +0800
committerGitHub <noreply@github.com>2024-04-25 10:15:54 +0800
commit4db9b309803796bc5f996d0b3713344eb44207ec (patch)
treea0ba8f3a2da32e5392e22272c641e3939de49be6 /src/client/model.rs
parent8dacea4deb0fe67c0cdbe15bd47e6e50c1dd12a1 (diff)
downloadaichat-4db9b309803796bc5f996d0b3713344eb44207ec.tar.gz
refactor: rewrite list models of all clients (#436)
Diffstat (limited to 'src/client/model.rs')
-rw-r--r--src/client/model.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/client/model.rs b/src/client/model.rs
index b97c244..3f2cbdd 100644
--- a/src/client/model.rs
+++ b/src/client/model.rs
@@ -49,17 +49,6 @@ impl Model {
.collect()
}
- pub fn from_static(client_name: &str, models: &[(&str, usize, &str)]) -> Vec<Self> {
- models
- .iter()
- .map(|(name, max_input_tokens, capabilities)| {
- Model::new(client_name, name)
- .set_capabilities((*capabilities).into())
- .set_max_input_tokens(Some(*max_input_tokens))
- })
- .collect()
- }
-
pub fn find(models: &[Self], value: &str) -> Option<Self> {
let mut model = None;
let (client_name, model_name) = match value.split_once(':') {