@@ -55,22 +55,22 @@ sttp-ai uses sttp client to describe requests and responses used in OpenAI, Clau
5555Add the following dependency:
5656
5757``` sbt
58- " com.softwaremill.sttp.ai" %% " openai" % " 0.4.6 "
58+ " com.softwaremill.sttp.ai" %% " openai" % " 0.4.7 "
5959```
6060
6161### For Claude (Anthropic) API
6262
6363Add the following dependency:
6464
6565``` sbt
66- " com.softwaremill.sttp.ai" %% " claude" % " 0.4.6 "
66+ " com.softwaremill.sttp.ai" %% " claude" % " 0.4.7 "
6767
6868// For streaming support, add one or more:
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)
69+ " com.softwaremill.sttp.ai" %% " claude-streaming-fs2" % " 0.4.7 " // cats-effect/fs2
70+ " com.softwaremill.sttp.ai" %% " claude-streaming-zio" % " 0.4.7 " // ZIO
71+ " com.softwaremill.sttp.ai" %% " claude-streaming-akka" % " 0.4.7 " // Akka Streams (Scala 2.13 only)
72+ " com.softwaremill.sttp.ai" %% " claude-streaming-pekko" % " 0.4.7 " // Pekko Streams
73+ " com.softwaremill.sttp.ai" %% " claude-streaming-ox" % " 0.4.7 " // Ox direct-style (Scala 3 only)
7474```
7575
7676sttp-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.6
87+ //> using dep com.softwaremill.sttp.ai::openai:0.4.7
8888
8989import sttp .ai .openai .OpenAISyncClient
9090import 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.6
154+ //> using dep com.softwaremill.sttp.ai::claude:0.4.7
155155
156156import sttp .ai .claude .*
157157import 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.6
308+ //> using dep com.softwaremill.sttp.ai::claude:0.4.7
309309//> using dep com.softwaremill.sttp.tapir::tapir-core:1.11.7
310310
311311import 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.6
598+ //> using dep com.softwaremill.sttp.ai::openai:0.4.7
599599
600600import sttp .ai .core .agent .*
601601import sttp .ai .core .json .SnakePickle
@@ -869,7 +869,7 @@ scala-cli run . -M examples.AgentLoopExample
869869Ollama with sync backend:
870870
871871``` scala mdoc:compile-only
872- //> using dep com.softwaremill.sttp.ai::openai:0.4.6
872+ //> using dep com.softwaremill.sttp.ai::openai:0.4.7
873873
874874import sttp .model .Uri .*
875875import sttp .ai .openai .OpenAISyncClient
@@ -923,7 +923,7 @@ object Main:
923923Grok with cats-effect based backend:
924924
925925``` scala mdoc:compile-only
926- //> using dep com.softwaremill.sttp.ai::openai:0.4.6
926+ //> using dep com.softwaremill.sttp.ai::openai:0.4.7
927927//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
928928
929929import cats .effect .IO
@@ -999,7 +999,7 @@ Example below uses `HttpClientCatsBackend` as a backend, make sure to [add it to
999999or use backend of your choice.
10001000
10011001``` scala mdoc:compile-only
1002- //> using dep com.softwaremill.sttp.ai::openai:0.4.6
1002+ //> using dep com.softwaremill.sttp.ai::openai:0.4.7
10031003//> using dep com.softwaremill.sttp.client4::cats:4.0.0-M17
10041004
10051005import 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.6 "
1071+ " com.softwaremill.sttp.ai" %% " fs2" % " 0.4.7 "
10721072
10731073// import
10741074import sttp .ai .openai .streaming .fs2 .*
@@ -1077,7 +1077,7 @@ import sttp.ai.openai.streaming.fs2.*
10771077Example below uses ` HttpClientFs2Backend ` as a backend:
10781078
10791079``` scala mdoc:compile-only
1080- //> using dep com.softwaremill.sttp.ai::fs2:0.4.6
1080+ //> using dep com.softwaremill.sttp.ai::fs2:0.4.7
10811081
10821082import cats .effect .IO
10831083import 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.6 "
1161+ " com.softwaremill.sttp.ai" %% " ox" % " 0.4.7 "
11621162
11631163// import
11641164import sttp .ai .openai .streaming .ox .*
@@ -1167,7 +1167,7 @@ import sttp.ai.openai.streaming.ox.*
11671167Example code:
11681168
11691169``` scala
1170- //> using dep com.softwaremill.sttp.ai::ox:0.4.6
1170+ //> using dep com.softwaremill.sttp.ai::ox:0.4.7
11711171
11721172import ox .*
11731173import ox .either .orThrow
@@ -1214,7 +1214,7 @@ and support for JSON Schema, you can use `ResponseFormat.JsonSchema` when creati
12141214The example below produces a JSON object:
12151215
12161216``` scala mdoc:compile-only
1217- //> using dep com.softwaremill.sttp.ai::openai:0.4.6
1217+ //> using dep com.softwaremill.sttp.ai::openai:0.4.7
12181218
12191219import scala .collection .immutable .ListMap
12201220import sttp .apispec .{Schema , SchemaType }
@@ -1340,7 +1340,7 @@ Another helpful feature is adding possibility to create ToolMessage object passi
13401340With 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.6
1343+ //> using dep com.softwaremill.sttp.ai::openai:0.4.7
13441344
13451345import sttp .ai .openai .OpenAISyncClient
13461346import sttp .ai .core .json .SnakePickle
0 commit comments