hf_text-generation-inference/launcher
OlivierDehaene 7fbfbb0dc5
feat: Add token streaming using ServerSideEvents support (#36)
Add token streaming using ServerSideEvents (SSE).

The signature of the SSE events is: 

```rust
struct Details {
    finish_reason: String,
    generated_tokens: u32,
    seed: Option<u64>,
}

struct StreamResponse {
    token: Token,
    generated_text: Option<String>,
    details: Option<Details>,
}

struct ErrorResponse {
    error: String,
}
```
2023-01-31 11:49:43 +01:00
..
src feat(server): Support SantaCoder (#26) 2023-01-20 12:24:39 +01:00
tests feat: Add token streaming using ServerSideEvents support (#36) 2023-01-31 11:49:43 +01:00
Cargo.toml feat: Add token streaming using ServerSideEvents support (#36) 2023-01-31 11:49:43 +01:00