Skip to content

Commit 408a7a8

Browse files
authored
port baseline chatui changes to basic (#67)
1 parent 5cf47e0 commit 408a7a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

website/chatui/Controllers/ChatController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ChatController(
1919
private readonly IOptionsMonitor<ChatApiOptions> _options = options;
2020
private readonly ILogger<ChatController> _logger = logger;
2121

22-
// TODO: [security] Do not trust client to provide conversationId. Instead map current user to their active converstaionid in your application's own state store.
22+
// TODO: [security] Do not trust client to provide conversationId. Instead map current user to their active conversationId in your application's own state store.
2323
// Without this security control in place, a user can inject messages into another user's conversation.
2424
[HttpPost("{conversationId}")]
2525
public async Task<IActionResult> Completions([FromRoute] string conversationId, [FromBody] string message)
@@ -28,6 +28,7 @@ public async Task<IActionResult> Completions([FromRoute] string conversationId,
2828
throw new ArgumentException("Message cannot be null, empty, or whitespace.", nameof(message));
2929
_logger.LogDebug("Prompt received {Prompt}", message);
3030

31+
// MessageResponseItem is currently intended for evaluation purposes and therefore requires explicit suppression of compiler diagnostics.
3132
#pragma warning disable OPENAI001
3233
MessageResponseItem userMessageResponseItem = ResponseItem.CreateUserMessageItem(
3334
[ResponseContentPart.CreateInputTextPart(message)]);

0 commit comments

Comments
 (0)