Skip to content

Commit

Permalink
chore: use getenv optional param when getting default embeddings model
Browse files Browse the repository at this point in the history
  • Loading branch information
YrrepNoj committed Aug 1, 2024
1 parent 65a3c40 commit 5b1eed3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/leapfrogai_api/backend/rag/leapfrogai_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ async def aembed_query(self, text: str) -> list[float]:
return list_of_embeddings[0]

async def _get_model(
self,
model_name: str = os.getenv("DEFAULT_EMBEDDINGS_MODEL") or "text-embeddings",
self, model_name: str = os.getenv("DEFAULT_EMBEDDINGS_MODEL", "text-embeddings")
):
"""Gets the embeddings model.
Expand Down

0 comments on commit 5b1eed3

Please sign in to comment.