Project setup
Set the SDK dependencies for using the LLM SDK.
Add the SDK dependency
Add the dependency to the build.gradle
file as shown in the example below.
settings.gradle
file
App module's build.gradle
file
- Kotlin
- Groovy
dependencies {
implementation("ai.pleos.playground:LLM:2.1.3.1")
}
dependencies {
implementation "ai.pleos.playground:LLM:2.1.3.1"
}
Add permission requirement
All APIs in this SDK require the following permission to be granted. Ensure this permission is added to your AndroidManifest.xml file.
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
...
<uses-permission android:name="pleos.car.permission.LLM_SERVICE" />
...
</manifest>