Skip to content

Commit 54e55d8

Browse files
committed
🐛 FIX: threads create
1 parent 885c8e3 commit 54e55d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/threads/threads.create.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ def main():
2222
# Create a thread with metadata and initial messages
2323
try:
2424
thread = lb.threads.create(
25-
{
26-
"metadata": {"company": "langbase"},
27-
"messages": [{"role": "user", "content": "Hello, how are you?"}],
28-
}
25+
metadata={"company": "langbase"},
26+
messages=[{"role": "user", "content": "Hello, how are you?"}],
2927
)
3028

3129
print(json.dumps(thread, indent=2))

0 commit comments

Comments
 (0)