diff --git a/api/src/main/java/openai/OpenAiResponse.java b/api/src/main/java/com/theokanning/openai/OpenAiResponse.java similarity index 91% rename from api/src/main/java/openai/OpenAiResponse.java rename to api/src/main/java/com/theokanning/openai/OpenAiResponse.java index 93274ad..4b718aa 100644 --- a/api/src/main/java/openai/OpenAiResponse.java +++ b/api/src/main/java/com/theokanning/openai/OpenAiResponse.java @@ -1,4 +1,4 @@ -package openai; +package com.theokanning.openai; import lombok.Data; diff --git a/api/src/main/java/openai/completion/CompletionChoice.java b/api/src/main/java/com/theokanning/openai/completion/CompletionChoice.java similarity index 93% rename from api/src/main/java/openai/completion/CompletionChoice.java rename to api/src/main/java/com/theokanning/openai/completion/CompletionChoice.java index 4f06c2c..c635165 100644 --- a/api/src/main/java/openai/completion/CompletionChoice.java +++ b/api/src/main/java/com/theokanning/openai/completion/CompletionChoice.java @@ -1,4 +1,4 @@ -package openai.completion; +package com.theokanning.openai.completion; import lombok.Data; diff --git a/api/src/main/java/openai/completion/CompletionRequest.java b/api/src/main/java/com/theokanning/openai/completion/CompletionRequest.java similarity index 98% rename from api/src/main/java/openai/completion/CompletionRequest.java rename to api/src/main/java/com/theokanning/openai/completion/CompletionRequest.java index eb98447..6852d65 100644 --- a/api/src/main/java/openai/completion/CompletionRequest.java +++ b/api/src/main/java/com/theokanning/openai/completion/CompletionRequest.java @@ -1,4 +1,4 @@ -package openai.completion; +package com.theokanning.openai.completion; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/api/src/main/java/openai/completion/CompletionResult.java b/api/src/main/java/com/theokanning/openai/completion/CompletionResult.java similarity index 93% rename from api/src/main/java/openai/completion/CompletionResult.java rename to api/src/main/java/com/theokanning/openai/completion/CompletionResult.java index 14eeec5..2978a21 100644 --- a/api/src/main/java/openai/completion/CompletionResult.java +++ b/api/src/main/java/com/theokanning/openai/completion/CompletionResult.java @@ -1,4 +1,4 @@ -package openai.completion; +package com.theokanning.openai.completion; import lombok.Data; diff --git a/api/src/main/java/openai/completion/LogProbResult.java b/api/src/main/java/com/theokanning/openai/completion/LogProbResult.java similarity index 95% rename from api/src/main/java/openai/completion/LogProbResult.java rename to api/src/main/java/com/theokanning/openai/completion/LogProbResult.java index 6acd1d2..90ff87a 100644 --- a/api/src/main/java/openai/completion/LogProbResult.java +++ b/api/src/main/java/com/theokanning/openai/completion/LogProbResult.java @@ -1,4 +1,4 @@ -package openai.completion; +package com.theokanning.openai.completion; import lombok.Data; diff --git a/api/src/main/java/openai/engine/Engine.java b/api/src/main/java/com/theokanning/openai/engine/Engine.java similarity index 93% rename from api/src/main/java/openai/engine/Engine.java rename to api/src/main/java/com/theokanning/openai/engine/Engine.java index 304dcdd..200773b 100644 --- a/api/src/main/java/openai/engine/Engine.java +++ b/api/src/main/java/com/theokanning/openai/engine/Engine.java @@ -1,4 +1,4 @@ -package openai.engine; +package com.theokanning.openai.engine; import lombok.Data; diff --git a/api/src/main/java/openai/search/SearchRequest.java b/api/src/main/java/com/theokanning/openai/search/SearchRequest.java similarity index 94% rename from api/src/main/java/openai/search/SearchRequest.java rename to api/src/main/java/com/theokanning/openai/search/SearchRequest.java index 8d5c853..ba80f57 100644 --- a/api/src/main/java/openai/search/SearchRequest.java +++ b/api/src/main/java/com/theokanning/openai/search/SearchRequest.java @@ -1,4 +1,4 @@ -package openai.search; +package com.theokanning.openai.search; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/api/src/main/java/openai/search/SearchResult.java b/api/src/main/java/com/theokanning/openai/search/SearchResult.java similarity index 92% rename from api/src/main/java/openai/search/SearchResult.java rename to api/src/main/java/com/theokanning/openai/search/SearchResult.java index de923f5..f2dcd18 100644 --- a/api/src/main/java/openai/search/SearchResult.java +++ b/api/src/main/java/com/theokanning/openai/search/SearchResult.java @@ -1,4 +1,4 @@ -package openai.search; +package com.theokanning.openai.search; import lombok.Data; diff --git a/client/src/main/java/openai/AuthenticationInterceptor.java b/client/src/main/java/com/theokanning/openai/AuthenticationInterceptor.java similarity index 95% rename from client/src/main/java/openai/AuthenticationInterceptor.java rename to client/src/main/java/com/theokanning/openai/AuthenticationInterceptor.java index ac795c2..7e53c6a 100644 --- a/client/src/main/java/openai/AuthenticationInterceptor.java +++ b/client/src/main/java/com/theokanning/openai/AuthenticationInterceptor.java @@ -1,4 +1,4 @@ -package openai; +package com.theokanning.openai; import okhttp3.Interceptor; import okhttp3.Request; diff --git a/client/src/main/java/openai/OpenAiApi.java b/client/src/main/java/com/theokanning/openai/OpenAiApi.java similarity index 69% rename from client/src/main/java/openai/OpenAiApi.java rename to client/src/main/java/com/theokanning/openai/OpenAiApi.java index 86fc990..3949392 100644 --- a/client/src/main/java/openai/OpenAiApi.java +++ b/client/src/main/java/com/theokanning/openai/OpenAiApi.java @@ -1,11 +1,11 @@ -package openai; +package com.theokanning.openai; +import com.theokanning.openai.engine.Engine; +import com.theokanning.openai.search.SearchRequest; import io.reactivex.Single; -import openai.completion.CompletionRequest; -import openai.completion.CompletionResult; -import openai.engine.Engine; -import openai.search.SearchRequest; -import openai.search.SearchResult; +import com.theokanning.openai.completion.CompletionRequest; +import com.theokanning.openai.completion.CompletionResult; +import com.theokanning.openai.search.SearchResult; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; diff --git a/client/src/main/java/openai/OpenAiService.java b/client/src/main/java/com/theokanning/openai/OpenAiService.java similarity index 86% rename from client/src/main/java/openai/OpenAiService.java rename to client/src/main/java/com/theokanning/openai/OpenAiService.java index c2c0662..bd49de1 100644 --- a/client/src/main/java/openai/OpenAiService.java +++ b/client/src/main/java/com/theokanning/openai/OpenAiService.java @@ -1,16 +1,16 @@ -package openai; +package com.theokanning.openai; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.PropertyNamingStrategy; +import com.theokanning.openai.search.SearchRequest; import okhttp3.ConnectionPool; import okhttp3.OkHttpClient; -import openai.completion.CompletionRequest; -import openai.completion.CompletionResult; -import openai.engine.Engine; -import openai.search.SearchRequest; -import openai.search.SearchResult; +import com.theokanning.openai.completion.CompletionRequest; +import com.theokanning.openai.completion.CompletionResult; +import com.theokanning.openai.engine.Engine; +import com.theokanning.openai.search.SearchResult; import retrofit2.Retrofit; import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; diff --git a/example/src/main/java/example/OpenAiApiExample.java b/example/src/main/java/example/OpenAiApiExample.java index c8a1c9a..f1ba34f 100644 --- a/example/src/main/java/example/OpenAiApiExample.java +++ b/example/src/main/java/example/OpenAiApiExample.java @@ -1,9 +1,9 @@ package example; -import openai.OpenAiService; -import openai.completion.CompletionRequest; -import openai.engine.Engine; -import openai.search.SearchRequest; +import com.theokanning.openai.OpenAiService; +import com.theokanning.openai.completion.CompletionRequest; +import com.theokanning.openai.engine.Engine; +import com.theokanning.openai.search.SearchRequest; import java.util.Arrays;