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.
2 parents 273a6af + 4477218 commit 9e68b2dCopy full SHA for 9e68b2d
+llms/+internal/sendRequest.m
@@ -8,8 +8,8 @@
8
9
% Define the headers for the API request
10
11
- headers = matlab.net.http.HeaderField('Content-Type', 'application/json');
12
- headers(2) = matlab.net.http.HeaderField('Authorization', 'Bearer ' + string(token));
+ headers = [matlab.net.http.HeaderField('Content-Type', 'application/json');
+ matlab.net.http.HeaderField('Authorization', "Bearer " + token)];
13
% Define the request message
14
request = matlab.net.http.RequestMessage('post',headers,parameters);
15
% Send the request and store the response
0 commit comments