Skip to content

Commit 6940d21

Browse files
Added details to embedding code
Added a comment regarding the model used in the embedding code. From the way it was written, it seems that the model should be used (e.g. "text-embedding-ada-002") instead the model name that the user gives to the deployed model should be used.
1 parent 93a661c commit 6940d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/ai-services/openai/how-to/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ client = AzureOpenAI(
196196

197197
response = client.embeddings.create(
198198
input = "Your text string goes here",
199-
model= "text-embedding-ada-002"
199+
model= "text-embedding-ada-002" # model = "deployment_name".
200200
)
201201

202202
print(response.model_dump_json(indent=2))

0 commit comments

Comments
 (0)