Skip to content

Commit 2d16ebc

Browse files
chore: update docs for api:"required"
1 parent 180597f commit 2d16ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func main() {
367367
The openai library uses the [`omitzero`](https://tip.golang.org/doc/go1.24#encodingjsonpkgencodingjson)
368368
semantics from the Go 1.24+ `encoding/json` release for request fields.
369369

370-
Required primitive fields (`int64`, `string`, etc.) feature the tag <code>\`json:"...,required"\`</code>. These
370+
Required primitive fields (`int64`, `string`, etc.) feature the tag <code>\`api:"required"\`</code>. These
371371
fields are always serialized, even their zero values.
372372

373373
Optional primitive types are wrapped in a `param.Opt[T]`. These fields can be set with the provided constructors, `openai.String(string)`, `openai.Int(int64)`, etc.

0 commit comments

Comments
 (0)