mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
Add jina-embeddings-v2-base-de model configuration (#2094)
This commit is contained in:
parent
f3323beaca
commit
09a8db10d4
|
@ -0,0 +1,9 @@
|
||||||
|
model: jina-embeddings-v2-base-de
|
||||||
|
model_type: text-embedding
|
||||||
|
model_properties:
|
||||||
|
context_size: 8192
|
||||||
|
max_chunks: 2048
|
||||||
|
pricing:
|
||||||
|
input: '0.001'
|
||||||
|
unit: '0.001'
|
||||||
|
currency: USD
|
|
@ -17,7 +17,7 @@ class JinaTextEmbeddingModel(TextEmbeddingModel):
|
||||||
Model class for Jina text embedding model.
|
Model class for Jina text embedding model.
|
||||||
"""
|
"""
|
||||||
api_base: str = 'https://api.jina.ai/v1/embeddings'
|
api_base: str = 'https://api.jina.ai/v1/embeddings'
|
||||||
models: list[str] = ['jina-embeddings-v2-base-en', 'jina-embeddings-v2-small-en', 'jina-embeddings-v2-base-zh']
|
models: list[str] = ['jina-embeddings-v2-base-en', 'jina-embeddings-v2-small-en', 'jina-embeddings-v2-base-zh', 'jina-embeddings-v2-base-de']
|
||||||
|
|
||||||
def _invoke(self, model: str, credentials: dict,
|
def _invoke(self, model: str, credentials: dict,
|
||||||
texts: list[str], user: Optional[str] = None) \
|
texts: list[str], user: Optional[str] = None) \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user