Commit dd0e995 scala-steward
committed
1 parent bd90349 commit dd0e995 Copy full SHA for dd0e995
File tree 2 files changed +3
-4
lines changed
core/src/main/scala/sttp/openai/requests/completions/chat
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,8 @@ lazy val examples = (projectMatrix in file("examples"))
104
104
.dependsOn(ox)
105
105
106
106
val compileDocumentation : TaskKey [Unit ] = taskKey[Unit ](" Compiles docs module throwing away its output" )
107
- compileDocumentation := {
107
+ compileDocumentation :=
108
108
(docs.jvm(scala2.head) / mdoc).toTask(" --out target/sttp-openai-docs" ).value
109
- }
110
109
111
110
lazy val docs = (projectMatrix in file(" generated-docs" )) // important: it must not be docs/
112
111
.enablePlugins(MdocPlugin )
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ object ChatRequestBody {
35
35
*
36
36
* 1. All fields must be `required`: https://platform.openai.com/docs/guides/structured-outputs/all-fields-must-be-required
37
37
*
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
40
40
*
41
41
* We implement these by folding over the JSON structure. However, if a schema uses discriminated unions (indicated by a
42
42
* `discriminator` property), we skip forcing `additionalProperties: false` to preserve flexibility in selecting sub-schemas.
You can’t perform that action at this time.
0 commit comments