We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e1ea5 commit 3bc245dCopy full SHA for 3bc245d
db/sql/03-get_embedding.sql
@@ -14,13 +14,13 @@ begin try
14
@response = @response output;
15
end try
16
begin catch
17
- select 'REST' as [error], ERROR_NUMBER() as [error_code], ERROR_MESSAGE() as [error_message]
18
- return
+ select 'Embedding:REST' as [error], ERROR_NUMBER() as [error_code], ERROR_MESSAGE() as [error_message]
+ return -1
19
end catch
20
21
if @retval != 0 begin
22
- select 'OpenAI' as [error], @retval as [error_code], @response as [response]
23
+ select 'Embedding:OpenAI' as [error], @retval as [error_code], @response as [response]
+ return @retval
24
end
25
26
declare @re nvarchar(max) = json_query(@response, '$.result.data[0].embedding')
0 commit comments