Skip to content

Commit 8ae49ad

Browse files
aschwakpwtxt
authored andcommitted
Fix example when_present example prompt
1 parent bb3f985 commit 8ae49ad

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/pydantic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ client = DotTxt()
7070
result = client.generate(
7171
model="openai/gpt-oss-20b",
7272
input=(
73+
"User lives at 1 main street and has credit card number `12345678910`."
7374
"Return a JSON object representing a payment payload. "
7475
"Include credit_card and billing_address fields."
7576
),

examples/pydantic_conditionals_when_present.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Payment(ConditionalModel, BaseModel):
2222
result = client.generate(
2323
model="openai/gpt-oss-20b",
2424
input=(
25+
"User lives at 1 main street and has credit card number `12345678910`."
2526
"Return a JSON object representing a payment payload. "
2627
"Include credit_card and billing_address fields."
2728
),

0 commit comments

Comments
 (0)