aiAccountOrgsCredentialCreateWithHttpInfo method
Future<Response>
aiAccountOrgsCredentialCreateWithHttpInfo(
- String org,
- LLMCredential lLMCredential
API View to manage LLM credentials. Sample for value field : {\"key\": \"sk-31343432432434324324324324\"}
Note: This method returns the HTTP Response.
Parameters:
-
String org (required):
-
LLMCredential lLMCredential (required):
Implementation
Future<Response> aiAccountOrgsCredentialCreateWithHttpInfo(String org, LLMCredential lLMCredential,) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/account/orgs/{org}/credential/'
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody = lLMCredential;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}