gephyr 1.16.18

Gephyr is a headless local AI relay/proxy API handling OpenAI, Claude, and Gemini-compatible APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub(crate) fn record_success(health_scores: &dashmap::DashMap<String, f32>, account_id: &str) {
    health_scores
        .entry(account_id.to_string())
        .and_modify(|s| *s = (*s + 0.05).min(1.0))
        .or_insert(1.0);
}

pub(crate) fn record_failure(health_scores: &dashmap::DashMap<String, f32>, account_id: &str) {
    health_scores
        .entry(account_id.to_string())
        .and_modify(|s| *s = (*s - 0.2).max(0.0))
        .or_insert(0.8);
}