refactor: improve request type validation and enhance sensitive information masking

This commit is contained in:
CaIon committed 2025-08-15 13:20:36 +08:00
1 parent dba74e5b05
commit 8eb17f24bb
11 files changed
+87 -102

No files matched your search

+3
View File
@@ -122,6 +122,9 @@ func WssObject(c *gin.Context, ws *websocket.Conn, object interface{}) error {
}
func WssError(c *gin.Context, ws *websocket.Conn, openaiError types.OpenAIError) {
if ws == nil {
return
}
errorObj := &dto.RealtimeEvent{
Type: "error",
EventId: GetLocalRealtimeID(c),