Skip to content

Commit 03c6026

Browse files
committed
Release 0.4.6
1 parent 2c4757d commit 03c6026

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,22 @@ sttp-ai uses sttp client to describe requests and responses used in OpenAI, Clau
5555
Add the following dependency:
5656

5757
```sbt
58-
"com.softwaremill.sttp.ai" %% "openai" % "0.4.5"
58+
"com.softwaremill.sttp.ai" %% "openai" % "0.4.6"
5959
```
6060

6161
### For Claude (Anthropic) API
6262

6363
Add the following dependency:
6464

6565
```sbt
66-
"com.softwaremill.sttp.ai" %% "claude" % "0.4.5"
66+
"com.softwaremill.sttp.ai" %% "claude" % "0.4.6"
6767

6868
// For streaming support, add one or more:
69-
"com.softwaremill.sttp.ai" %% "claude-streaming-fs2" % "0.4.5" // cats-effect/fs2
70-
"com.softwaremill.sttp.ai" %% "claude-streaming-zio" % "0.4.5" // ZIO
71-
"com.softwaremill.sttp.ai" %% "claude-streaming-akka" % "0.4.5" // Akka Streams (Scala 2.13 only)
72-
"com.softwaremill.sttp.ai" %% "claude-streaming-pekko" % "0.4.5" // Pekko Streams
73-
"com.softwaremill.sttp.ai" %% "claude-streaming-ox" % "0.4.5" // Ox direct-style (Scala 3 only)
69+
"com.softwaremill.sttp.ai" %% "claude-streaming-fs2" % "0.4.6" // cats-effect/fs2
70+
"com.softwaremill.sttp.ai" %% "claude-streaming-zio" % "0.4.6" // ZIO
71+
"com.softwaremill.sttp.ai" %% "claude-streaming-akka" % "0.4.6" // Akka Streams (Scala 2.13 only)
72+
"com.softwaremill.sttp.ai" %% "claude-streaming-pekko" % "0.4.6" // Pekko Streams
73+
"com.softwaremill.sttp.ai" %% "claude-streaming-ox" % "0.4.6" // Ox direct-style (Scala 3 only)
7474
```
7575

7676
sttp-openai is available for Scala 2.13 and Scala 3
@@ -84,7 +84,7 @@ Examples are runnable using [scala-cli](https://scala-cli.virtuslab.org).
8484
### Basic Usage (OpenAI)
8585

8686
```scala mdoc:compile-only
87-
//> using dep com.softwaremill.sttp.ai::openai:0.4.5
87+
//> using dep com.softwaremill.sttp.ai::openai:0.4.6
8888

8989
import sttp.ai.openai.OpenAISyncClient
9090
import sttp.ai.openai.requests.completions.chat.ChatRequestResponseData.ChatResponse
@@ -151,7 +151,7 @@ This module provides **native support for Anthropic's Claude API** within the st
151151
### Basic Usage (Claude)
152152

153153
```scala mdoc:compile-only
154-
//> using dep com.softwaremill.sttp.ai::claude:0.4.5
154+
//> using dep com.softwaremill.sttp.ai::claude:0.4.6
155155

156156
import sttp.ai.claude.*
157157
import sttp.ai.claude.config.ClaudeConfig
@@ -305,7 +305,7 @@ Claude's structured output feature (currently in beta) allows you to enforce tha
305305
#### Basic Structured Output Example
306306

307307
```scala mdoc:compile-only
308-
//> using dep com.softwaremill.sttp.ai::claude:0.4.5
308+
//> using dep com.softwaremill.sttp.ai::claude:0.4.6
309309
//> using dep com.softwaremill.sttp.tapir::tapir-core:1.11.7
310310

311311
import sttp.ai.claude.*
@@ -595,7 +595,7 @@ Framework for building autonomous AI agents that iteratively solve tasks using t
595595
### Quick Start
596596

597597
```scala mdoc:compile-only
598-
//> using dep com.softwaremill.sttp.ai::openai:0.4.5
598+
//> using dep com.softwaremill.sttp.ai::openai:0.4.6
599599

600600
import sttp.ai.core.agent.*
601601
import sttp.ai.core.json.SnakePickle
@@ -869,7 +869,7 @@ scala-cli run . -M examples.AgentLoopExample
869869
Ollama with sync backend:
870870

871871
```scala mdoc:compile-only
872-
//> using dep com.softwaremill.sttp.ai::openai:0.4.5
872+
//> using dep com.softwaremill.sttp.ai::openai:0.4.6
873873

874874
import sttp.model.Uri.*
875875
import sttp.ai.openai.OpenAISyncClient
@@ -923,7 +923,7 @@ object Main:
923923
Grok with cats-effect based backend:
924924

925925
```scala mdoc:compile-only
926-
//> using dep com.softwaremill.sttp.ai::openai:0.4.5
926+
//> using dep com.softwaremill.sttp.ai::openai:0.4.6
927927
//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
928928

929929
import cats.effect.IO
@@ -999,7 +999,7 @@ Example below uses `HttpClientCatsBackend` as a backend, make sure to [add it to
999999
or use backend of your choice.
10001000

10011001
```scala mdoc:compile-only
1002-
//> using dep com.softwaremill.sttp.ai::openai:0.4.5
1002+
//> using dep com.softwaremill.sttp.ai::openai:0.4.6
10031003
//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
10041004

10051005
import cats.effect.IO
@@ -1068,7 +1068,7 @@ For example, to use `fs2` add the following dependency & import:
10681068

10691069
```scala
10701070
// sbt dependency
1071-
"com.softwaremill.sttp.ai" %% "fs2" % "0.4.5"
1071+
"com.softwaremill.sttp.ai" %% "fs2" % "0.4.6"
10721072

10731073
// import
10741074
import sttp.ai.openai.streaming.fs2.*
@@ -1077,7 +1077,7 @@ import sttp.ai.openai.streaming.fs2.*
10771077
Example below uses `HttpClientFs2Backend` as a backend:
10781078

10791079
```scala mdoc:compile-only
1080-
//> using dep com.softwaremill.sttp.ai::fs2:0.4.5
1080+
//> using dep com.softwaremill.sttp.ai::fs2:0.4.6
10811081

10821082
import cats.effect.IO
10831083
import cats.effect.unsafe.implicits.global
@@ -1158,7 +1158,7 @@ To use direct-style streaming (requires Scala 3) add the following dependency &
11581158

11591159
```scala
11601160
// sbt dependency
1161-
"com.softwaremill.sttp.ai" %% "ox" % "0.4.5"
1161+
"com.softwaremill.sttp.ai" %% "ox" % "0.4.6"
11621162

11631163
// import
11641164
import sttp.ai.openai.streaming.ox.*
@@ -1167,7 +1167,7 @@ import sttp.ai.openai.streaming.ox.*
11671167
Example code:
11681168

11691169
```scala
1170-
//> using dep com.softwaremill.sttp.ai::ox:0.4.5
1170+
//> using dep com.softwaremill.sttp.ai::ox:0.4.6
11711171

11721172
import ox.*
11731173
import ox.either.orThrow
@@ -1214,7 +1214,7 @@ and support for JSON Schema, you can use `ResponseFormat.JsonSchema` when creati
12141214
The example below produces a JSON object:
12151215

12161216
```scala mdoc:compile-only
1217-
//> using dep com.softwaremill.sttp.ai::openai:0.4.5
1217+
//> using dep com.softwaremill.sttp.ai::openai:0.4.6
12181218

12191219
import scala.collection.immutable.ListMap
12201220
import sttp.apispec.{Schema, SchemaType}
@@ -1340,7 +1340,7 @@ Another helpful feature is adding possibility to create ToolMessage object passi
13401340
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.
13411341

13421342
```scala mdoc:compile-only
1343-
//> using dep com.softwaremill.sttp.ai::openai:0.4.5
1343+
//> using dep com.softwaremill.sttp.ai::openai:0.4.6
13441344

13451345
import sttp.ai.openai.OpenAISyncClient
13461346
import sttp.ai.core.json.SnakePickle

0 commit comments

Comments
 (0)