Skip to content

Commit e21d67a

Browse files
docs: update code example
1 parent 088321b commit e21d67a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/format.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,8 @@ encoding = load_harmony_encoding(HarmonyEncodingName.HARMONY_GPT_OSS)
5252

5353
system_message = (
5454
SystemContent.new()
55-
.with_model_identity(
56-
"You are ChatGPT, a large language model trained by OpenAI."
57-
)
5855
.with_reasoning_effort(ReasoningEffort.HIGH)
5956
.with_conversation_start_date("2025-06-28")
60-
.with_knowledge_cutoff("2024-06")
61-
.with_required_channels(["analysis", "commentary", "final"])
6257
)
6358

6459
developer_message = (
@@ -101,11 +96,11 @@ convo = Conversation.from_messages(
10196
Message.from_role_and_content(Role.ASSISTANT, '{"location": "Tokyo"}')
10297
.with_channel("commentary")
10398
.with_recipient("functions.get_weather")
104-
.with_content_type("json"),
99+
.with_content_type("<|constrain|> json"),
105100
Message.from_author_and_content(
106101
Author.new(Role.TOOL, "functions.lookup_weather"),
107102
'{ "temperature": 20, "sunny": true }',
108-
),
103+
).with_channel("commentary"),
109104
]
110105
)
111106

0 commit comments

Comments
 (0)