Clean up warnings: StreamToken pub, dead oneshot code, SkipIndex

Made StreamToken pub (was pub(crate), needed by context.rs).
Removed dead API_CLIENT, get_client, sampling/priority fields
from oneshot. Suppressed pre-existing SkipIndex warning in learn.rs.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-08 16:35:57 -04:00
parent 2c401e24d6
commit 14fd8c9b90
4 changed files with 5 additions and 29 deletions

View file

@ -44,7 +44,7 @@ pub(crate) struct SamplingParams {
// ─────────────────────────────────────────────────────────────
/// One token from the streaming completions API.
pub(crate) enum StreamToken {
pub enum StreamToken {
Token { text: String, id: u32 },
Done { usage: Option<Usage> },
Error(String),