refactor prompt gateway

- move
This commit is contained in:
Adil Hafeez 2024-10-19 12:25:43 -07:00
parent dced8a5708
commit e70f55dd5b
8 changed files with 448 additions and 393 deletions

View file

@ -22,11 +22,12 @@ pub enum ServerError {
Serialization(serde_json::Error),
#[error("{0}")]
LogicError(String),
#[error("upstream error response authority={authority}, path={path}, status={status}")]
#[error("upstream application error host={host}, path={path}, status={status}, body={body}")]
Upstream {
authority: String,
host: String,
path: String,
status: String,
body: String,
},
#[error("jailbreak detected: {0}")]
Jailbreak(String),