Skip to content

Commit

Permalink
Update approach.py (Typo "Azure Open AI"→"Azure OpenAI") (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoshioka0128 authored Mar 15, 2024
1 parent 127620a commit d487104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/approaches/approach.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_citation(self, sourcepage: str, use_image_citation: bool) -> str:

async def compute_text_embedding(self, q: str):
embedding = await self.openai_client.embeddings.create(
# Azure Open AI takes the deployment name as the model name
# Azure OpenAI takes the deployment name as the model name
model=self.embedding_deployment if self.embedding_deployment else self.embedding_model,
input=q,
)
Expand Down

0 comments on commit d487104

Please sign in to comment.