Skip to content

Commit 683c3bd

Browse files
authored
add end=""
1 parent 3d57fa0 commit 683c3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tasks/src/snippets/python.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ stream = client.chat.completions.create(
5555
)
5656
5757
for chunk in stream:
58-
print(chunk.choices[0].delta.content)`,
58+
print(chunk.choices[0].delta.content, end="")`,
5959
},
6060
{
6161
client: "openai",
@@ -76,7 +76,7 @@ stream = client.chat.completions.create(
7676
)
7777
7878
for chunk in stream:
79-
print(chunk.choices[0].delta.content)`,
79+
print(chunk.choices[0].delta.content, end="")`,
8080
},
8181
];
8282
} else {

0 commit comments

Comments
 (0)