Make text embedding title optional

- Make text embedding title optional, as sending it causes erros
on tasks that don't support title, like CLASSIFICATION.
- Update dependencies
This commit is contained in:
2024-04-15 11:10:11 +01:00
parent 5de4a96d33
commit 0e219aded0
4 changed files with 12 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ pub struct TextEmbeddingRequest {
pub struct TextEmbeddingRequestInstance {
pub content: String,
pub task_type: String,
pub title: String,
pub title: Option<String>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]