Move data objects into separate openai-api package

People can import this if they want to make their own client or don't like retrofit
This commit is contained in:
Theo Kanning 2020-10-04 18:09:48 -05:00
parent 5d74cfde5a
commit 61300727c8
12 changed files with 11 additions and 3 deletions

View File

@ -6,5 +6,5 @@ application {
}
dependencies {
implementation project(":openai")
implementation project(":openai-client")
}

6
openai-api/build.gradle Normal file
View File

@ -0,0 +1,6 @@
apply plugin: 'java-library'
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
}

View File

@ -1,6 +1,7 @@
apply plugin: 'java-library'
dependencies {
api project(":openai-api")
api 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'

View File

@ -1,5 +1,6 @@
rootProject.name = 'openai-java'
include ':openai'
include ':example'
include 'example'
include 'openai-api'
include 'openai-client'