Skip to content

Commit

Permalink
updated to version 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
artemnefedov committed May 7, 2023
1 parent 3784ed4 commit 22ac477
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 35 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# JavaAI is an open-source Java library for interacting with the OpenAI API
# JavaAI

[![Maven Central](https://img.shields.io/maven-central/v/io.github.artemnefedov/javaai.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.artemnefedov%22%20AND%20a:%22javaai%22)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/1194ce221f4f46ed950d4b05e6fd248c)](https://app.codacy.com/gh/artemnefedov/JavaAI_OpenAI-SDK/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

## The JavaAI Java SDK is a non-official open source library that allows Java developers to interact with OpenAI models with just a few lines of code.

Expand All @@ -22,12 +21,12 @@ _The package released to [Maven Central Repository](https://central.sonatype.com
<dependency>
<groupId>io.github.artemnefedov</groupId>
<artifactId>javaai</artifactId>
<version>0.3.2</version>
<version>0.3.3</version>
</dependency>
```
#### Gradle:
```groovy
implementation group: 'io.github.artemnefedov', name: 'javaai', version: '0.3.2'
implementation group: 'io.github.artemnefedov', name: 'javaai', version: '0.3.3'
```
#### or download the JAR file from the [releases page](https://github.com/artemnefedov/JavaAI_OpenAI-SDK/releases)

Expand All @@ -54,7 +53,7 @@ messages.add(new ChatMessage("user", "Hello!"));

String chatResponse = openAI.chat(messages);
```
#### Just in case, I added a [demo](https://github.com/artemnefedov/JavaAI_OpenAI-SDK/tree/demo).
#### Just in case, I added a [demo](https://github.com/artemnefedov/JavaAI/tree/demo).
<br>

**Notice:**
Expand All @@ -70,7 +69,7 @@ openAI.customImageBuilderConfig(imageBuilder);
---
## Models JavaAI can work with:
1. [x] [Completions](https://platform.openai.com/docs/api-reference/completions)
2. [x] [Chat](https://platform.openai.com/docs/api-reference/chat)
2. [x] [Chat-GPT](https://platform.openai.com/docs/api-reference/chat)
3. [x] [Create image](https://platform.openai.com/docs/api-reference/images/create)

---
Expand All @@ -82,4 +81,4 @@ openAI.customImageBuilderConfig(imageBuilder);

## License
#### Distributed under the [MIT License](https://github.com/artemnefedov/OpenAI/blob/main/LICENSE)
# JavaAI
# JavaAI
32 changes: 4 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,40 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ MIT License
~
~ Copyright (c) 2023. Artyom Nefedov
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
~ furnished to do so, subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in all
~ copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
~ SOFTWARE.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.github.artemnefedov</groupId>
<artifactId>javaai</artifactId>
<version>0.3.2</version>
<version>0.3.3</version>
<packaging>jar</packaging>

<name>JavaAI</name>
<description>Open AI GPT-3 Java SDK</description>
<description>JavaAI is an open-source Java library for interacting with the OpenAI API</description>
<url>https://github.com/artemnefedov/JavaAI</url>

<issueManagement>
Expand Down Expand Up @@ -64,8 +40,8 @@
</scm>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.organization>artemnefedov</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
Expand Down

0 comments on commit 22ac477

Please sign in to comment.