mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 10:45:42 +01:00
Allow passing HF access token to download tokenizer. Fallback to default tokenizer.
This commit is contained in:
parent
347be643f7
commit
49ef729abc
3 changed files with 22 additions and 6 deletions
|
|
@ -151,6 +151,10 @@ class HuggingFaceSettings(BaseModel):
|
|||
embedding_hf_model_name: str = Field(
|
||||
description="Name of the HuggingFace model to use for embeddings"
|
||||
)
|
||||
access_token: str = Field(
|
||||
None,
|
||||
description="Huggingface access token, required to download some models",
|
||||
)
|
||||
|
||||
|
||||
class EmbeddingSettings(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue