diff --git a/README.md b/README.md
index 43ce8b2..798738e 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
[![](https://img.shields.io/github/discussions/CJCrafter/ChatGPT-Java-API)](https://github.com/CJCrafter/ChatGPT-Java-API/discussions)
[![License](https://img.shields.io/github/license/CJCrafter/ChatGPT-Java-API)](https://github.com/CJCrafter/ChatGPT-Java-API/blob/master/LICENSE)
-A community-maintained easy-to-use Java/Kotlin OpenAI API for ChatGPT, Text Completions, and more!
+An unofficial, easy-to-use Java/Kotlin OpenAI API for ChatGPT, Text Completions, and more!
## Features
@@ -96,6 +96,34 @@ For more examples, check out [examples](https://github.com/CJCrafter/ChatGPT-Jav
> **Note**: OpenAI recommends using environment variables for your API token
([Read more](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)).
+## Logging
+We use [SLF4J](http://www.slf4j.org/) for logging. To enable logging, add a logging implementation to your project.
+If you encounter an issue with the JSON parsing, we will ask that you enable logging and send us the logs.
+
+Adding a logging implementation:
+```kotlin
+implementation("ch.qos.logback:logback-classic:$version")
+```
+
+Add a `logback.xml` file to your resources folder:
+```xml
+
+
+ debug.log
+ false
+
+ %date %level [%thread] %logger{10} %msg%n
+
+
+
+
+
+
+
+
+
+```
+
## Support
If I have saved you time, please consider [sponsoring me](https://github.com/sponsors/CJCrafter).
diff --git a/build.gradle.kts b/build.gradle.kts
index 3a5e601..39df8b7 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,14 +1,14 @@
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask
group = "com.cjcrafter"
-version = "2.0.0"
+version = "2.0.1"
plugins {
`java-library`
`maven-publish`
signing
id("io.codearte.nexus-staging") version "0.30.0"
- kotlin("jvm") version "1.7.20-RC"
+ kotlin("jvm") version "1.9.20"
id("org.jetbrains.dokka") version "1.8.10" // KDoc Documentation Builder
id("com.github.breadmoirai.github-release") version "2.4.1"
}
@@ -18,7 +18,7 @@ repositories {
}
dependencies {
- implementation("com.squareup.okhttp3:okhttp:4.9.2")
+ implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.fasterxml.jackson.core:jackson-core:2.15.3")
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.3")
@@ -31,8 +31,8 @@ dependencies {
testImplementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
- testImplementation("com.squareup.okhttp3:okhttp:4.9.2")
- testImplementation("com.squareup.okhttp3:mockwebserver:4.9.2")
+ testImplementation("com.squareup.okhttp3:okhttp:4.12.0")
+ testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
}
kotlin {
diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts
index 2720042..c1fe72e 100644
--- a/examples/build.gradle.kts
+++ b/examples/build.gradle.kts
@@ -1,6 +1,6 @@
plugins {
`java-library`
- kotlin("jvm") version "1.7.20-RC"
+ kotlin("jvm") version "1.9.20"
}
repositories {
@@ -9,7 +9,7 @@ repositories {
dependencies {
implementation(project(":"))
- implementation("com.squareup.okhttp3:okhttp:4.9.2")
+ implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.fasterxml.jackson.core:jackson-core:2.15.3")
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.3")
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
diff --git a/examples/src/main/resources/logback.xml b/examples/src/main/resources/logback.xml
index d2334ba..b047923 100644
--- a/examples/src/main/resources/logback.xml
+++ b/examples/src/main/resources/logback.xml
@@ -7,6 +7,8 @@
+
+