mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 10:45:42 +01:00
Update poetry lock (#1209)
* Update the version of llama_index used to fix transient openai errors * Update poetry.lock file * Make `local` mode the default mode by default
This commit is contained in:
parent
a22969ad1f
commit
a579c9bdc5
14 changed files with 313 additions and 268 deletions
|
|
@ -1,3 +1,5 @@
|
|||
from typing import Literal
|
||||
|
||||
from injector import inject, singleton
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
|
@ -6,7 +8,7 @@ from private_gpt.components.embedding.embedding_component import EmbeddingCompon
|
|||
|
||||
class Embedding(BaseModel):
|
||||
index: int
|
||||
object: str = Field(enum=["embedding"])
|
||||
object: Literal["embedding"]
|
||||
embedding: list[float] = Field(examples=[[0.0023064255, -0.009327292]])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue