Skip to content

Commit dd0e995

Browse files
author
scala-steward
committed
Reformat with scalafmt 3.8.6
Executed command: scalafmt --non-interactive
1 parent bd90349 commit dd0e995

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build.sbt

+1-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ lazy val examples = (projectMatrix in file("examples"))
104104
.dependsOn(ox)
105105

106106
val compileDocumentation: TaskKey[Unit] = taskKey[Unit]("Compiles docs module throwing away its output")
107-
compileDocumentation := {
107+
compileDocumentation :=
108108
(docs.jvm(scala2.head) / mdoc).toTask(" --out target/sttp-openai-docs").value
109-
}
110109

111110
lazy val docs = (projectMatrix in file("generated-docs")) // important: it must not be docs/
112111
.enablePlugins(MdocPlugin)

core/src/main/scala/sttp/openai/requests/completions/chat/ChatRequestBody.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ object ChatRequestBody {
3535
*
3636
* 1. All fields must be `required`: https://platform.openai.com/docs/guides/structured-outputs/all-fields-must-be-required
3737
*
38-
* 2. `additionalProperties: false` must always be set in objects:
39-
* https://platform.openai.com/docs/guides/structured-outputs/additionalproperties-false-must-always-be-set-in-objects
38+
* 2. `additionalProperties: false` must always be set in objects:
39+
* https://platform.openai.com/docs/guides/structured-outputs/additionalproperties-false-must-always-be-set-in-objects
4040
*
4141
* We implement these by folding over the JSON structure. However, if a schema uses discriminated unions (indicated by a
4242
* `discriminator` property), we skip forcing `additionalProperties: false` to preserve flexibility in selecting sub-schemas.

0 commit comments

Comments
 (0)