Skip to content

Commit 9e68b2d

Browse files
committed
Merge branch 'llms-v1' of insidelabs-git.mathworks.com:dferreir/llms-with-matlab into llms-v1
2 parents 273a6af + 4477218 commit 9e68b2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+llms/+internal/sendRequest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
% Define the headers for the API request
1010

11-
headers = matlab.net.http.HeaderField('Content-Type', 'application/json');
12-
headers(2) = matlab.net.http.HeaderField('Authorization', 'Bearer ' + string(token));
11+
headers = [matlab.net.http.HeaderField('Content-Type', 'application/json');
12+
matlab.net.http.HeaderField('Authorization', "Bearer " + token)];
1313
% Define the request message
1414
request = matlab.net.http.RequestMessage('post',headers,parameters);
1515
% Send the request and store the response

0 commit comments

Comments
 (0)