Skip to content

Commit

Permalink
fix: WebUI unsupported value error when invoking o1-* models
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Nov 11, 2024
1 parent e18aa01 commit ddd9309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,12 @@ impl Server {
client: &dyn Client,
http_client: &reqwest::Client,
handler: &mut SseHandler,
data: ChatCompletionsData,
mut data: ChatCompletionsData,
tx: &UnboundedSender<ResEvent>,
is_first: Arc<AtomicBool>,
) {
if client.model().no_stream() {
data.stream = false;
let ret = client.chat_completions_inner(http_client, data).await;
match ret {
Ok(output) => {
Expand Down

0 comments on commit ddd9309

Please sign in to comment.