Skip to content

Commit 4477218

Browse files
ccreutzidebymf
authored andcommitted
Refactoring string for headers.
1 parent a5c3f10 commit 4477218

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)