Skip to content

Commit

Permalink
Add OpenAI text-embedding-3-small, -large models (#628)
Browse files Browse the repository at this point in the history
* Adds new gen-3 embedding models

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
JasonWeill and pre-commit-ci[bot] authored Feb 7, 2024
1 parent 7b8e314 commit 1b1e5ca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def __init__(self, *args, **kwargs):
class OpenAIEmbeddingsProvider(BaseEmbeddingsProvider, OpenAIEmbeddings):
id = "openai"
name = "OpenAI"
models = ["text-embedding-ada-002"]
models = [
"text-embedding-ada-002",
"text-embedding-3-small",
"text-embedding-3-large",
]
model_id_key = "model"
pypi_package_deps = ["openai"]
auth_strategy = EnvAuthStrategy(name="OPENAI_API_KEY")
Expand Down

0 comments on commit 1b1e5ca

Please sign in to comment.