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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user