Skip to content

Commit c75fa98

Browse files
author
michal.zyga
committed
Release 0.3.1
1 parent 3b367e9 commit c75fa98

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 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" % "v0.3.1"
23+
"com.softwaremill.sttp.openai" %% "core" % "0.3.1"
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:v0.3.1
39+
//> using dep com.softwaremill.sttp.openai::core:0.3.1
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:v0.3.1
89+
//> using dep com.softwaremill.sttp.openai::core:0.3.1
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:v0.3.1
143+
//> using dep com.softwaremill.sttp.openai::core:0.3.1
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:v0.3.1
220+
//> using dep com.softwaremill.sttp.openai::core:0.3.1
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" % "v0.3.1"
288+
"com.softwaremill.sttp.openai" %% "fs2" % "0.3.1"
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:v0.3.1
297+
//> using dep com.softwaremill.sttp.openai::fs2:0.3.1
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" % "v0.3.1"
379+
"com.softwaremill.sttp.openai" %% "ox" % "0.3.1"
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:v0.3.1
388+
//> using dep com.softwaremill.sttp.openai::ox:0.3.1
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:v0.3.1
435+
//> using dep com.softwaremill.sttp.openai::core:0.3.1
436436

437437
import scala.collection.immutable.ListMap
438438
import sttp.apispec.{Schema, SchemaType}

0 commit comments

Comments
 (0)