hf_text-generation-inference/server/tests
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
..
models feat: Add token streaming using ServerSideEvents support (#36) 2023-01-31 11:49:43 +01:00
conftest.py feat(server): Support SantaCoder (#26) 2023-01-20 12:24:39 +01:00
test_utils.py fix(server): Fix stop sequences (#11) 2022-12-16 16:03:39 +01:00