ソースを参照

fix: default max_chunks set to 1 as other providers (#10937)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
tags/0.12.0
yihong 11ヶ月前
コミット
80da0c5830
コミッターのメールアドレスに関連付けられたアカウントが存在しません

+ 1
- 1
api/core/model_runtime/model_providers/volcengine_maas/text_embedding/models.py ファイルの表示

return ModelConfig( return ModelConfig(
properties=ModelProperties( properties=ModelProperties(
context_size=int(credentials.get("context_size", 0)), context_size=int(credentials.get("context_size", 0)),
max_chunks=int(credentials.get("max_chunks", 0)),
max_chunks=int(credentials.get("max_chunks", 1)),
) )
) )
return model_configs return model_configs

読み込み中…
キャンセル
保存