Skip to content

Commit aa199d7

Browse files
committed
Release 0.3.5
1 parent c65c310 commit aa199d7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sttp-openai uses sttp client to describe requests and responses used in OpenAI (
2020
Add the following dependency:
2121

2222
```sbt
23-
"com.softwaremill.sttp.openai" %% "core" % "0.3.4"
23+
"com.softwaremill.sttp.openai" %% "core" % "0.3.5"
2424
```
2525

2626
sttp-openai is available for Scala 2.13 and Scala 3
@@ -36,7 +36,7 @@ Examples are runnable using [scala-cli](https://scala-cli.virtuslab.org).
3636
### To use ChatGPT
3737

3838
```scala mdoc:compile-only
39-
//> using dep com.softwaremill.sttp.openai::core:0.3.4
39+
//> using dep com.softwaremill.sttp.openai::core:0.3.5
4040

4141
import sttp.openai.OpenAISyncClient
4242
import sttp.openai.requests.completions.chat.ChatRequestResponseData.ChatResponse
@@ -86,7 +86,7 @@ object Main extends App {
8686
Ollama with sync backend:
8787

8888
```scala mdoc:compile-only
89-
//> using dep com.softwaremill.sttp.openai::core:0.3.4
89+
//> using dep com.softwaremill.sttp.openai::core:0.3.5
9090

9191
import sttp.model.Uri._
9292
import sttp.openai.OpenAISyncClient
@@ -140,7 +140,7 @@ object Main extends App {
140140
Grok with cats-effect based backend:
141141

142142
```scala mdoc:compile-only
143-
//> using dep com.softwaremill.sttp.openai::core:0.3.4
143+
//> using dep com.softwaremill.sttp.openai::core:0.3.5
144144
//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
145145

146146
import cats.effect.{ExitCode, IO, IOApp}
@@ -217,7 +217,7 @@ Example below uses `HttpClientCatsBackend` as a backend, make sure to [add it to
217217
or use backend of your choice.
218218

219219
```scala mdoc:compile-only
220-
//> using dep com.softwaremill.sttp.openai::core:0.3.4
220+
//> using dep com.softwaremill.sttp.openai::core:0.3.5
221221
//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
222222

223223
import cats.effect.{ExitCode, IO, IOApp}
@@ -285,7 +285,7 @@ For example, to use `fs2` add the following dependency & import:
285285

286286
```scala
287287
// sbt dependency
288-
"com.softwaremill.sttp.openai" %% "fs2" % "0.3.4"
288+
"com.softwaremill.sttp.openai" %% "fs2" % "0.3.5"
289289

290290
// import
291291
import sttp.openai.streaming.fs2._
@@ -294,7 +294,7 @@ import sttp.openai.streaming.fs2._
294294
Example below uses `HttpClientFs2Backend` as a backend:
295295

296296
```scala mdoc:compile-only
297-
//> using dep com.softwaremill.sttp.openai::fs2:0.3.4
297+
//> using dep com.softwaremill.sttp.openai::fs2:0.3.5
298298

299299
import cats.effect.{ExitCode, IO, IOApp}
300300
import fs2.Stream
@@ -376,7 +376,7 @@ To use direct-style streaming (requires Scala 3) add the following dependency &
376376

377377
```scala
378378
// sbt dependency
379-
"com.softwaremill.sttp.openai" %% "ox" % "0.3.4"
379+
"com.softwaremill.sttp.openai" %% "ox" % "0.3.5"
380380

381381
// import
382382
import sttp.openai.streaming.ox.*
@@ -385,7 +385,7 @@ import sttp.openai.streaming.ox.*
385385
Example code:
386386

387387
```scala
388-
//> using dep com.softwaremill.sttp.openai::ox:0.3.4
388+
//> using dep com.softwaremill.sttp.openai::ox:0.3.5
389389

390390
import ox.*
391391
import ox.either.orThrow
@@ -432,7 +432,7 @@ and support for JSON Schema, you can use `ResponseFormat.JsonSchema` when creati
432432
The example below produces a JSON object:
433433

434434
```scala mdoc:compile-only
435-
//> using dep com.softwaremill.sttp.openai::core:0.3.4
435+
//> using dep com.softwaremill.sttp.openai::core:0.3.5
436436

437437
import scala.collection.immutable.ListMap
438438
import sttp.apispec.{Schema, SchemaType}
@@ -557,7 +557,7 @@ Another helpful feature is adding possibility to create ToolMessage object passi
557557
With all this in mind please remember that it is still required to deserialized arguments, which are sent back by Assistant to call our function.
558558

559559
```scala mdoc:compile-only
560-
//> using dep com.softwaremill.sttp.openai::core:0.3.4
560+
//> using dep com.softwaremill.sttp.openai::core:0.3.5
561561

562562
import sttp.openai.OpenAISyncClient
563563
import sttp.openai.json.SnakePickle

0 commit comments

Comments
 (0)