1.4 KiB
1.4 KiB
manager_api_new.api.AIApi
Load the API package
import 'package:manager_api_new/api.dart';
All URIs are relative to https://localhost:5001
| Method | HTTP request | Description |
|---|---|---|
| aiChat | POST /api/Ai/chat |
aiChat
AiChatResponse aiChat(aiChatRequest)
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = AIApi();
final aiChatRequest = AiChatRequest(); // AiChatRequest |
try {
final result = api_instance.aiChat(aiChatRequest);
print(result);
} catch (e) {
print('Exception when calling AIApi->aiChat: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| aiChatRequest | AiChatRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]