Repository: softwaremill/sttp-openai
Pull request #159 (2024-03-15 00:05:26)

Update client4:akka-http-backend, ... to 4.0.0-M11
## About this PR
📦 Updates 
* [com.softwaremill.sttp.client4:akka-http-backend](https://github.com/softwaremill/sttp)
* [com.softwaremill.sttp.client4:core](https://github.com/softwaremill/sttp)
* [com.softwaremill.sttp.client4:fs2](https://github.com/softwaremill/sttp)
* [com.softwaremill.sttp.client4:pekko-http-backend](https://github.com/softwaremill/sttp)
* [com.softwaremill.sttp.client4:upickle](https://github.com/softwaremill/sttp)
* [com.softwaremill.sttp.client4:zio](https://github.com/softwaremill/sttp)

 from `4.0.0-M9` to `4.0.0-M11`

📜 [GitHub Release Notes](https://github.com/softwaremill/sttp/releases/tag/v4.0.0-M11) - [Version Diff](https://github.com/softwaremill/sttp/compare/v4.0.0-M9...v4.0.0-M11)

## Usage
✅ **Please merge!**

I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.

If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.

Configure Scala Steward for your repository with a [`.scala-steward.conf`](https://github.com/scala-steward-org/scala-steward/blob/7ec418cd5441d449f037bca6d34326534c07a5dd/docs/repo-specific-configuration.md) file.

_Have a fantastic day writing Scala!_

<details>
<summary>⚙ Adjust future updates</summary>

Add this to your `.scala-steward.conf` file to ignore future updates of this dependency:
```
updates.ignore = [ { groupId = "com.softwaremill.sttp.client4" } ]
```
Or, add this to slow down future updates of this dependency:
```
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.softwaremill.sttp.client4" }
}]
```
</details>

<sup>
labels: library-update, early-semver-pre-release, semver-spec-pre-release, commit-count:1
</sup>


Patch:
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
index 7a97abc..bc57c1c 100644
--- a/.git-blame-ignore-revs
+++ b/.git-blame-ignore-revs
@@ -3,3 +3,6 @@
 
 # Scala Steward: Reformat with scalafmt 3.8.0
 5b2bb84be0a9e9d3334b7d23c1e56dd47c0acc50
+
+# Scala Steward: Reformat with scalafmt 3.8.1
+0da64294cb90279afc959af8a39a19227ad64372
diff --git a/.scalafmt.conf b/.scalafmt.conf
index 695d228..1bdbf06 100644
--- a/.scalafmt.conf
+++ b/.scalafmt.conf
@@ -1,4 +1,4 @@
-version        = 3.8.0
+version        = 3.8.1
 maxColumn      = 140
 rewrite.rules  = [RedundantBraces, RedundantParens, SortImports]
 runner.dialect = scala3
diff --git a/build.sbt b/build.sbt
index 45b0ff2..b21bf88 100644
--- a/build.sbt
+++ b/build.sbt
@@ -3,7 +3,7 @@ import com.softwaremill.Publish.ossPublishSettings
 import Dependencies._
 
 val scala2 = List("2.13.13")
-val scala3 = List("3.3.3")
+val scala3 = List("3.4.1")
 
 def dependenciesFor(version: String)(deps: (Option[(Long, Long)] => ModuleID)*): Seq[ModuleID] =
   deps.map(_.apply(CrossVersion.partialVersion(version)))
diff --git a/core/src/main/scala/sttp/openai/requests/completions/chat/message/Tool.scala b/core/src/main/scala/sttp/openai/requests/completions/chat/message/Tool.scala
index 18c235a..4c5d304 100644
--- a/core/src/main/scala/sttp/openai/requests/completions/chat/message/Tool.scala
+++ b/core/src/main/scala/sttp/openai/requests/completions/chat/message/Tool.scala
@@ -25,13 +25,13 @@ object Tool {
 
   /** Code interpreter tool
     *
-    *   The type of tool being defined: code_interpreter
+    * The type of tool being defined: code_interpreter
     */
   case object CodeInterpreterTool extends Tool
 
   /** Retrieval tool
     *
-    *   The type of tool being defined: retrieval
+    * The type of tool being defined: retrieval
     */
   case object RetrievalTool extends Tool
 
diff --git a/core/src/main/scala/sttp/openai/requests/threads/QueryParameters.scala b/core/src/main/scala/sttp/openai/requests/threads/QueryParameters.scala
index 149160d..0abafc8 100644
--- a/core/src/main/scala/sttp/openai/requests/threads/QueryParameters.scala
+++ b/core/src/main/scala/sttp/openai/requests/threads/QueryParameters.scala
@@ -31,4 +31,4 @@ case class QueryParameters(
 
 object QueryParameters {
   val empty: QueryParameters = QueryParameters(None, None, None, None)
-}
\ No newline at end of file
+}
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 3991fd3..8bc66c1 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -6,7 +6,7 @@ object Dependencies {
     val scalaTest = "3.2.18"
     val scalaTestCats = "1.5.0"
 
-    val sttpClient = "4.0.0-M9"
+    val sttpClient = "4.0.0-M11"
     val pekkoStreams = "1.0.2"
     val akkaStreams = "2.6.20"
     val uPickle = "3.1.4"


Test patch:
diff --git a/core/src/test/scala/sttp/openai/requests/threads/messages/ThreadMessagesDataSpec.scala b/core/src/test/scala/sttp/openai/requests/threads/messages/ThreadMessagesDataSpec.scala
index 1178a31..4595e95 100644
--- a/core/src/test/scala/sttp/openai/requests/threads/messages/ThreadMessagesDataSpec.scala
+++ b/core/src/test/scala/sttp/openai/requests/threads/messages/ThreadMessagesDataSpec.scala
@@ -6,7 +6,12 @@ import org.scalatest.matchers.should.Matchers
 import sttp.openai.fixtures
 import sttp.openai.json.{SnakePickle, SttpUpickleApiExtension}
 import sttp.openai.requests.threads.messages.ThreadMessagesResponseData.Content.{TextContent, TextContentValue}
-import sttp.openai.requests.threads.messages.ThreadMessagesResponseData.{ListMessageFilesResponse, ListMessagesResponse, MessageData, MessageFileData}
+import sttp.openai.requests.threads.messages.ThreadMessagesResponseData.{
+  ListMessageFilesResponse,
+  ListMessagesResponse,
+  MessageData,
+  MessageFileData
+}
 
 class ThreadMessagesDataSpec extends AnyFlatSpec with Matchers with EitherValues {
 
diff --git a/core/src/test/scala/sttp/openai/requests/threads/runs/ThreadRunsDataSpec.scala b/core/src/test/scala/sttp/openai/requests/threads/runs/ThreadRunsDataSpec.scala
index b2c0c61..0688d88 100644
--- a/core/src/test/scala/sttp/openai/requests/threads/runs/ThreadRunsDataSpec.scala
+++ b/core/src/test/scala/sttp/openai/requests/threads/runs/ThreadRunsDataSpec.scala
@@ -10,7 +10,7 @@ import sttp.openai.requests.completions.Usage
 import sttp.openai.requests.threads.ThreadsRequestBody.CreateThreadBody
 import sttp.openai.requests.threads.messages.ThreadMessagesRequestBody.CreateMessage
 import sttp.openai.requests.threads.runs.ThreadRunsRequestBody.ToolOutput
-import sttp.openai.requests.threads.runs.ThreadRunsResponseData.{ListRunsResponse, ListRunStepsResponse, MessageCreation, RunStepData}
+import sttp.openai.requests.threads.runs.ThreadRunsResponseData.{ListRunStepsResponse, ListRunsResponse, MessageCreation, RunStepData}
 import ujson.{Arr, Obj, Str}
 
 class ThreadRunsDataSpec extends AnyFlatSpec with Matchers with EitherValues {
@@ -459,4 +459,5 @@ class ThreadRunsDataSpec extends AnyFlatSpec with Matchers with EitherValues {
 
     // then
     givenResponse.value shouldBe expectedResponse
-  }}
+  }
+}