Skip to content

Commit

Permalink
Update RealtimeConversationClient.cs
Browse files Browse the repository at this point in the history
uriBuilder already concat the ? into the uri;
that make double ?? and cause problem;
  • Loading branch information
BlinkSun authored Feb 7, 2025
1 parent 4cd8529 commit b54de89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Custom/RealtimeConversation/RealtimeConversationClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static Uri GetEndpoint(string model, OpenAIClientOptions options)
uriBuilder.Path += uriBuilder.Path[uriBuilder.Path.Length - 1] == '/' ? "realtime" : "/realtime";
}

uriBuilder.Query = $"?model={model}";
uriBuilder.Query = $"model={model}";

return uriBuilder.Uri;
}
Expand All @@ -101,4 +101,4 @@ internal void RaiseOnReceivingCommand(RealtimeConversationSession session, Binar
{
OnReceivingCommand?.Invoke(session, data);
}
}
}

0 comments on commit b54de89

Please sign in to comment.