@@ -20,7 +20,7 @@ sttp-openai uses sttp client to describe requests and responses used in OpenAI (
20
20
Add the following dependency:
21
21
22
22
``` sbt
23
- " com.softwaremill.sttp.openai" %% " core" % " v0 .3.1"
23
+ " com.softwaremill.sttp.openai" %% " core" % " 0 .3.1"
24
24
```
25
25
26
26
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).
36
36
### To use ChatGPT
37
37
38
38
``` 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
40
40
41
41
import sttp .openai .OpenAISyncClient
42
42
import sttp .openai .requests .completions .chat .ChatRequestResponseData .ChatResponse
@@ -86,7 +86,7 @@ object Main extends App {
86
86
Ollama with sync backend:
87
87
88
88
``` 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
90
90
91
91
import sttp .model .Uri ._
92
92
import sttp .openai .OpenAISyncClient
@@ -140,7 +140,7 @@ object Main extends App {
140
140
Grok with cats-effect based backend:
141
141
142
142
``` 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
144
144
//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
145
145
146
146
import cats .effect .{ExitCode , IO , IOApp }
@@ -217,7 +217,7 @@ Example below uses `HttpClientCatsBackend` as a backend, make sure to [add it to
217
217
or use backend of your choice.
218
218
219
219
``` 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
221
221
//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
222
222
223
223
import cats .effect .{ExitCode , IO , IOApp }
@@ -285,7 +285,7 @@ For example, to use `fs2` add the following dependency & import:
285
285
286
286
``` scala
287
287
// sbt dependency
288
- " com.softwaremill.sttp.openai" %% " fs2" % " v0 .3.1"
288
+ " com.softwaremill.sttp.openai" %% " fs2" % " 0 .3.1"
289
289
290
290
// import
291
291
import sttp .openai .streaming .fs2 ._
@@ -294,7 +294,7 @@ import sttp.openai.streaming.fs2._
294
294
Example below uses ` HttpClientFs2Backend ` as a backend:
295
295
296
296
``` 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
298
298
299
299
import cats .effect .{ExitCode , IO , IOApp }
300
300
import fs2 .Stream
@@ -376,7 +376,7 @@ To use direct-style streaming (requires Scala 3) add the following dependency &
376
376
377
377
``` scala
378
378
// sbt dependency
379
- " com.softwaremill.sttp.openai" %% " ox" % " v0 .3.1"
379
+ " com.softwaremill.sttp.openai" %% " ox" % " 0 .3.1"
380
380
381
381
// import
382
382
import sttp .openai .streaming .ox .*
@@ -385,7 +385,7 @@ import sttp.openai.streaming.ox.*
385
385
Example code:
386
386
387
387
``` scala
388
- //> using dep com.softwaremill.sttp.openai::ox:v0 .3.1
388
+ //> using dep com.softwaremill.sttp.openai::ox:0 .3.1
389
389
390
390
import ox .*
391
391
import ox .either .orThrow
@@ -432,7 +432,7 @@ and support for JSON Schema, you can use `ResponseFormat.JsonSchema` when creati
432
432
The example below produces a JSON object:
433
433
434
434
``` 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
436
436
437
437
import scala .collection .immutable .ListMap
438
438
import sttp .apispec .{Schema , SchemaType }
0 commit comments