Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Jun 11, 2024
1 parent ef86c5a commit 1efd445
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ expression: "format!(\"{:#?}\", rust_chunks)"
"{\n Ok(x) => x,\n Err(e) => {\n warn!(\"Failed to create completion request {:?}\", e);\n return;\n }\n };\n\n for await x in s",
"{\n match x",
"{\n Ok(x) => {\n yield x.choices[0].delta.content.clone().unwrap_or_default();\n },\n Err(e) =>",
"{\n warn!(\"Failed to stream response: {}\", e);\n break;\n }\n };\n }\n };\n\n Ok(Box::pin(s))\n }\n}",
"{\n // Stream finished.\n debug!(\"openai-chat stream finished: {:?}\", e);\n break;\n }\n };\n }\n };\n\n Ok(Box::pin(s))\n }\n}",
]

0 comments on commit 1efd445

Please sign in to comment.