8000 the url is missing /embeddings · yang-jiayi/azure-sql-db-openai@d9d49a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9d49a2

Browse files
the url is missing /embeddings
1 parent 44d3b45 commit d9d49a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector-embeddings/03-find-similar-articles.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare @inputText nvarchar(max) = 'the foundation series by isaac asimov';
1616
declare @retval int, @response nvarchar(max);
1717
declare @payload nvarchar(max) = json_object('input': @inputText);
1818
exec @retval = sp_invoke_external_rest_endpoint
19-
@url = 'https://<your-app-name>.openai.azure.com/openai/deployments/<deployment-id>?api-version=2023-03-15-preview',
19+
@url = 'https://<your-app-name>.openai.azure.com/openai/deployments/<deployment-id>/embeddings?api-version=2023-03-15-preview',
2020
@method = 'POST',
2121
@credential = [https://<your-app-name>.openai.azure.com],
2222
@payload = @payload,

0 commit comments

Comments
 (0)
0