mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-22 09:29:51 +01:00
chore: clippy helps out
This commit is contained in:
@@ -30,5 +30,5 @@ pub fn get_config() -> Result<AppConfig, ConfigError> {
|
||||
.add_source(Environment::default())
|
||||
.build()?;
|
||||
|
||||
Ok(config.try_deserialize()?)
|
||||
config.try_deserialize()
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ pub async fn generate_embedding_with_params(
|
||||
let request = CreateEmbeddingRequestArgs::default()
|
||||
.model(model)
|
||||
.input([input])
|
||||
.dimensions(dimensions as u32)
|
||||
.dimensions(dimensions)
|
||||
.build()?;
|
||||
|
||||
let response = client.embeddings().create(request).await?;
|
||||
|
||||
Reference in New Issue
Block a user