Initialization
Initialize the Altibbi SDK with the following parameters:
- token: Authentication token from your backend.
- baseURL: Your partner endpoint (will be shared with you upon request).
- language: Preferred language for responses —
'ar'for Arabic (default) or'en'for English. - sinaModelEndPoint: (optional) The endpoint for the Sina AI model. Default:
"".
import { init } from 'react-native-altibbi';
init('TOKEN', 'PARTNER_ENDPOINT', 'LANGUAGE');
With Sina AI Model Endpoint
If you want to use Sina AI features (e.g., createSinaSession, sendSinaMessage), provide the sinaModelEndPoint:
init('TOKEN', 'PARTNER_ENDPOINT', 'LANGUAGE', 'SINA_MODEL_ENDPOINT');
After the initialization you can start using the APIs and ready-to-use functions included in react-native-altibbi.