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
  • Loading branch information
JasonWeill authored and meeseeksmachine committed Feb 7, 2024
1 parent 04ef454 commit 4ff81d5
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 4ff81d5

Please sign in to comment.