Skip to main content

Create Sina Session

Creates a new chat session with Sina AI.

Request

final chat = await apiService.createSinaSession();

Error Handling

The function will throw a HttpResponseException if the API request fails.

Initialization

Before using the Sina API, you need to initialize the Altibbi service with the Sina endpoint:

void init() {
AltibbiService.init(
token: 'USER_TOKEN',
baseUrl: 'PARTNER_ENDPOINT',
language: 'ar',
sinaModelEndPoint: 'your-endpoint-here'
);
}