aiAccountOrgsPlatformMetadataCreate method
Future<IBLAIPlatformMeta?>
aiAccountOrgsPlatformMetadataCreate(
- String org, {
- IBLAIPlatformMeta? iBLAIPlatformMeta,
In order to use google as your LLM provider, you need to specify google_project (your google cloud project id) and google_location, which defaults to us-central1
Parameters:
-
String org (required):
-
IBLAIPlatformMeta iBLAIPlatformMeta:
Implementation
Future<IBLAIPlatformMeta?> aiAccountOrgsPlatformMetadataCreate(String org, { IBLAIPlatformMeta? iBLAIPlatformMeta, }) async {
final response = await aiAccountOrgsPlatformMetadataCreateWithHttpInfo(org, iBLAIPlatformMeta: iBLAIPlatformMeta, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'IBLAIPlatformMeta',) as IBLAIPlatformMeta;
}
return null;
}