• drbh's avatar
    feat: return streaming errors as an event formatted for openai's client (#2668) · 6489f852
    drbh authored
    
    
    * feat: return streaming errors as an event formatted for openai's client
    
    * fix: propagate completions error events to stream
    
    * fix: improve stream api error format and add status code
    
    * fix: improve streamin error to include error_type
    
    * Revert "fix: improve streamin error to include error_type"
    
    This reverts commit 2b1a360b1511d94ea9a24e5432e498e67939506a.
    
    * Reworked the implementation.
    
    * Revert "Reworked the implementation."
    
    This reverts commit 7c3f29777f17411ae4ade57e2f88e73cde704ee5.
    
    * Small lifting.
    
    ---------
    Co-authored-by: default avatarNicolas Patry <patry.nicolas@protonmail.com>
    6489f852
server.rs 102 KB