Project setup
LLM SDK 사용을 위해 SDK 의존성을 설정합니다.
SDK 의존성 추가
아래 예시와 같이 build.gradle
file 에 의존성을 추가합니다.
settings.gradle
file
- Kotlin
- Groovy
dependencyResolutionManagement {
...
repositories {
...
maven("https://nexus-playground.pleos.ai/repository/maven-releases/")
}
}
dependencyResolutionManagement {
...
repositories {
...
maven {
url "https://nexus-playground.pleos.ai/repository/maven-releases/"
}
}
}
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
앱에서 LLM SDK API 를 사용하기 위해서는 AndroidManifest.xml 에 아래와 같이 특정 권한을 선언해야 합니다.
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>