Skip to content

Commit

Permalink
Backport PR jupyterlab#628: Add OpenAI text-embedding-3-small, -large…
Browse files Browse the repository at this point in the history
… models (jupyterlab#629)

Co-authored-by: Jason Weill <[email protected]>
  • Loading branch information
meeseeksmachine and JasonWeill authored Feb 7, 2024
1 parent 04ef454 commit bd52241
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 bd52241

Please sign in to comment.