Skip to content

Commit

Permalink
fix: add api version/base api as optional for open ai embedding (run-…
Browse files Browse the repository at this point in the history
…llama#12091)

* fix: add api version/base api as optional for open ai embedding

* chore: revert optional

* bump version
  • Loading branch information
EmanuelCampos authored Mar 19, 2024
1 parent 85ecdae commit dbf3d9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ class OpenAIEmbedding(BaseEmbedding):
)

api_key: str = Field(description="The OpenAI API key.")
api_base: str = Field(
api_base: Optional[str] = Field(
default=DEFAULT_OPENAI_API_BASE, description="The base URL for OpenAI API."
)
api_version: str = Field(
api_version: Optional[str] = Field(
default=DEFAULT_OPENAI_API_VERSION, description="The version for OpenAI API."
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-embeddings-openai"
readme = "README.md"
version = "0.1.6"
version = "0.1.7"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down

0 comments on commit dbf3d9a

Please sign in to comment.