File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,8 @@ encoding = load_harmony_encoding(HarmonyEncodingName.HARMONY_GPT_OSS)
52
52
53
53
system_message = (
54
54
SystemContent.new()
55
- .with_model_identity(
56
- " You are ChatGPT, a large language model trained by OpenAI."
57
- )
58
55
.with_reasoning_effort(ReasoningEffort.HIGH )
59
56
.with_conversation_start_date(" 2025-06-28" )
60
- .with_knowledge_cutoff(" 2024-06" )
61
- .with_required_channels([" analysis" , " commentary" , " final" ])
62
57
)
63
58
64
59
developer_message = (
@@ -101,11 +96,11 @@ convo = Conversation.from_messages(
101
96
Message.from_role_and_content(Role.ASSISTANT , ' {"location": "Tokyo"}' )
102
97
.with_channel(" commentary" )
103
98
.with_recipient(" functions.get_weather" )
104
- .with_content_type(" json" ),
99
+ .with_content_type(" <|constrain|> json" ),
105
100
Message.from_author_and_content(
106
101
Author.new(Role.TOOL , " functions.lookup_weather" ),
107
102
' { "temperature": 20, "sunny": true }' ,
108
- ),
103
+ ).with_channel( " commentary " ) ,
109
104
]
110
105
)
111
106
You can’t perform that action at this time.
0 commit comments