Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/partners/openai/langchain_openai/embeddings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
"""Timeout for requests to OpenAI completion API. Can be float, ``httpx.Timeout`` or
None."""
headers: Any = None
tiktoken_enabled: bool = True
tiktoken_enabled: bool = Field(default=True)
"""Set this to False for non-OpenAI implementations of the embeddings API, e.g.
the ``--extensions openai`` extension for ``text-generation-webui``"""
tiktoken_model_name: Optional[str] = None
Expand Down Expand Up @@ -251,7 +251,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
http_async_client: Union[Any, None] = None
"""Optional ``httpx.AsyncClient``. Only used for async invocations. Must specify
``http_client`` as well if you'd like a custom client for sync invocations."""
check_embedding_ctx_length: bool = True
check_embedding_ctx_length: bool = Field(default=True)
"""Whether to check the token length of inputs and automatically split inputs
longer than embedding_ctx_length."""

Expand Down