Skip to content

Commit 36f5ffc

Browse files
committed
Version 1.0.0
1 parent 3bb8172 commit 36f5ffc

File tree

8 files changed

+32
-32
lines changed

8 files changed

+32
-32
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OpenAI Scala Client 🤖
2-
[![version](https://img.shields.io/badge/version-1.0.0.RC.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT) ![GitHub Stars](https://img.shields.io/github/stars/cequence-io/openai-scala-client?style=social) [![Twitter Follow](https://img.shields.io/twitter/follow/0xbnd?style=social)](https://twitter.com/0xbnd) ![GitHub CI](https://github.com/cequence-io/openai-scala-client/actions/workflows/continuous-integration.yml/badge.svg)
2+
[![version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT) ![GitHub Stars](https://img.shields.io/github/stars/cequence-io/openai-scala-client?style=social) [![Twitter Follow](https://img.shields.io/twitter/follow/0xbnd?style=social)](https://twitter.com/0xbnd) ![GitHub CI](https://github.com/cequence-io/openai-scala-client/actions/workflows/continuous-integration.yml/badge.svg)
33

44
This is a no-nonsense async Scala client for OpenAI API supporting all the available endpoints and params **including streaming**, the newest **chat completion**, **vision**, and **voice routines** (as defined [here](https://beta.openai.com/docs/api-reference)), provided in a single, convenient service called [OpenAIService](./openai-core/src/main/scala/io/cequence/openaiscala/service/OpenAIService.scala). The supported calls are:
55

@@ -50,7 +50,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
5050
To install the library, add the following dependency to your *build.sbt*
5151

5252
```
53-
"io.cequence" %% "openai-scala-client" % "1.0.0.RC.1"
53+
"io.cequence" %% "openai-scala-client" % "1.0.0"
5454
```
5555

5656
or to *pom.xml* (if you use maven)
@@ -59,11 +59,11 @@ or to *pom.xml* (if you use maven)
5959
<dependency>
6060
<groupId>io.cequence</groupId>
6161
<artifactId>openai-scala-client_2.12</artifactId>
62-
<version>1.0.0.RC.1</version>
62+
<version>1.0.0</version>
6363
</dependency>
6464
```
6565

66-
If you want streaming support, use `"io.cequence" %% "openai-scala-client-stream" % "1.0.0.RC.1"` instead.
66+
If you want streaming support, use `"io.cequence" %% "openai-scala-client-stream" % "1.0.0"` instead.
6767

6868
## Config ⚙️
6969

build.sbt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ val scala3 = "3.2.2"
77

88
ThisBuild / organization := "io.cequence"
99
ThisBuild / scalaVersion := scala212
10-
ThisBuild / version := "1.0.0.RC.1"
10+
ThisBuild / version := "1.0.0"
1111
ThisBuild / isSnapshot := false
1212

1313
lazy val commonSettings = Seq(
@@ -40,35 +40,35 @@ def extraTestDependencies(scalaVersion: String) =
4040
Nil
4141
}
4242

43-
lazy val core = (project in file("openai-core")).settings(commonSettings: _*)
43+
lazy val core = (project in file("openai-core")).settings(commonSettings *)
4444

4545
lazy val client = (project in file("openai-client"))
46-
.settings(commonSettings: _*)
46+
.settings(commonSettings *)
4747
.dependsOn(core)
4848
.aggregate(core)
4949

5050
lazy val client_stream = (project in file("openai-client-stream"))
51-
.settings(commonSettings: _*)
51+
.settings(commonSettings *)
5252
.dependsOn(client)
5353
.aggregate(client)
5454

5555
// note that for anthropic_client we provide a streaming extension within the module as well
5656
lazy val anthropic_client = (project in file("anthropic-client"))
57-
.settings(commonSettings: _*)
57+
.settings(commonSettings *)
5858
.dependsOn(core, client, client_stream)
5959
.aggregate(core, client, client_stream)
6060

61-
lazy val guice = (project in file("openai-guice"))
62-
.settings(commonSettings: _*)
63-
.dependsOn(client)
64-
.aggregate(client_stream)
65-
6661
lazy val count_tokens = (project in file("openai-count-tokens"))
6762
.settings(
68-
commonSettings ++ Seq(definedTestNames in Test := Nil): _*
63+
(commonSettings ++ Seq(definedTestNames in Test := Nil)) *
6964
)
7065
.dependsOn(client)
71-
.aggregate(client)
66+
.aggregate(anthropic_client)
67+
68+
lazy val guice = (project in file("openai-guice"))
69+
.settings(commonSettings *)
70+
.dependsOn(client)
71+
.aggregate(count_tokens)
7272

7373
lazy val examples = (project in file("openai-examples"))
7474
.settings(commonSettings *)

openai-client-stream/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OpenAI Scala Client - Stream Support [![version](https://img.shields.io/badge/version-1.0.0.RC.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# OpenAI Scala Client - Stream Support [![version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
This module provides streaming support for the client. Note that the full project documentation can be found [here](../README.md).
44

@@ -9,7 +9,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
99
To pull the library you have to add the following dependency to your *build.sbt*
1010

1111
```
12-
"io.cequence" %% "openai-scala-client-stream" % "1.0.0.RC.1"
12+
"io.cequence" %% "openai-scala-client-stream" % "1.0.0"
1313
```
1414

1515
or to *pom.xml* (if you use maven)
@@ -18,6 +18,6 @@ or to *pom.xml* (if you use maven)
1818
<dependency>
1919
<groupId>io.cequence</groupId>
2020
<artifactId>openai-scala-client-stream_2.12</artifactId>
21-
<version>1.0.0.RC.1</version>
21+
<version>1.0.0</version>
2222
</dependency>
2323
```

openai-client/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OpenAI Scala Client - Client [![version](https://img.shields.io/badge/version-1.0.0.RC.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# OpenAI Scala Client - Client [![version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
This module provides the actual meat, i.e. WS client implementation ([OpenAIServiceImpl and OpenAIServiceFactory](./src/main/scala/io/cequence/openaiscala/service/OpenAIServiceImpl.scala)).
44
Note that the full project documentation can be found [here](../README.md).
@@ -10,7 +10,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
1010
To pull the library you have to add the following dependency to your *build.sbt*
1111

1212
```
13-
"io.cequence" %% "openai-scala-client" % "1.0.0.RC.1"
13+
"io.cequence" %% "openai-scala-client" % "1.0.0"
1414
```
1515

1616
or to *pom.xml* (if you use maven)
@@ -19,6 +19,6 @@ or to *pom.xml* (if you use maven)
1919
<dependency>
2020
<groupId>io.cequence</groupId>
2121
<artifactId>openai-scala-client_2.12</artifactId>
22-
<version>1.0.0.RC.1</version>
22+
<version>1.0.0</version>
2323
</dependency>
2424
```

openai-core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OpenAI Scala Client - Core [![version](https://img.shields.io/badge/version-1.0.0.RC.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# OpenAI Scala Client - Core [![version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
This is the core module, which contains mostly domain classes and the [OpenAIService](./src/main/scala/io/cequence/openaiscala/service/OpenAIService.scala) definition.
44
Note that the full project documentation can be found [here](../README.md).
@@ -10,7 +10,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
1010
To pull the library you have to add the following dependency to your *build.sbt*
1111

1212
```
13-
"io.cequence" %% "openai-scala-core" % "1.0.0.RC.1"
13+
"io.cequence" %% "openai-scala-core" % "1.0.0"
1414
```
1515

1616
or to *pom.xml* (if you use maven)
@@ -19,6 +19,6 @@ or to *pom.xml* (if you use maven)
1919
<dependency>
2020
<groupId>io.cequence</groupId>
2121
<artifactId>openai-scala-core_2.12</artifactId>
22-
<version>1.0.0.RC.1</version>
22+
<version>1.0.0</version>
2323
</dependency>
2424
```

openai-count-tokens/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OpenAI Scala Client - Count tokens [![version](https://img.shields.io/badge/version-1.0.0.RC.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# OpenAI Scala Client - Count tokens [![version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
This module provides ability for estimating the number of tokens an OpenAI chat completion request will use.
44
Note that the full project documentation can be found [here](../README.md).
@@ -12,7 +12,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
1212
To pull the library you have to add the following dependency to your *build.sbt*
1313

1414
```
15-
"io.cequence" %% "openai-scala-count-tokens" % "1.0.0.RC.1"
15+
"io.cequence" %% "openai-scala-count-tokens" % "1.0.0"
1616
```
1717

1818
or to *pom.xml* (if you use maven)
@@ -21,7 +21,7 @@ or to *pom.xml* (if you use maven)
2121
<dependency>
2222
<groupId>io.cequence</groupId>
2323
<artifactId>openai-scala-count-tokens_2.12</artifactId>
24-
<version>1.0.0.RC.1</version>
24+
<version>1.0.0</version>
2525
</dependency>
2626
```
2727

openai-examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# OpenAI Scala Client - Examples [![version](https://img.shields.io/badge/version-1.0.0.RC.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# OpenAI Scala Client - Examples [![version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
This module contains examples demonstrating how to use the **OpenAI Scala Client**.

openai-guice/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OpenAI Scala Client - Guice [![version](https://img.shields.io/badge/version-1.0.0.RC.1-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
1+
# OpenAI Scala Client - Guice [![version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://cequence.io) [![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
22

33
This module provides dependency injection for the OpenAI Scala client with a help of `Guice` library.
44
Note that the full project documentation can be found [here](../README.md).
@@ -10,7 +10,7 @@ The currently supported Scala versions are **2.12, 2.13**, and **3**.
1010
To pull the library you have to add the following dependency to your *build.sbt*
1111

1212
```
13-
"io.cequence" %% "openai-scala-guice" % "1.0.0.RC.1"
13+
"io.cequence" %% "openai-scala-guice" % "1.0.0"
1414
```
1515

1616
or to *pom.xml* (if you use maven)
@@ -19,6 +19,6 @@ or to *pom.xml* (if you use maven)
1919
<dependency>
2020
<groupId>io.cequence</groupId>
2121
<artifactId>openai-scala-guice_2.12</artifactId>
22-
<version>1.0.0.RC.1</version>
22+
<version>1.0.0</version>
2323
</dependency>
2424
```

0 commit comments

Comments
 (0)