fix: remove deprecated test and fix typing

This commit is contained in:
drbh 2025-04-23 17:06:22 +00:00
parent 81656bd016
commit bb5c875f0b
3 changed files with 2 additions and 29 deletions

View File

@ -1,26 +0,0 @@
name: Python Client Tests
on:
pull_request:
paths:
- ".github/workflows/client-tests.yaml"
- "clients/python/**"
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install
run: |
cd clients/python && pip install .
- name: Run tests
run: |
pip install pytest pytest-asyncio
export HF_TOKEN=${{ secrets.HF_TOKEN }}
make python-client-tests

View File

@ -401,7 +401,6 @@ impl From<ValidStoppingParameters> for StoppingCriteriaParameters {
#[cfg(test)]
mod tests {
use super::*;
use std::collections::HashMap;
use std::sync::Arc;
use tracing::info_span;
@ -430,7 +429,7 @@ mod tests {
frequency_penalty: 0.0,
watermark: false,
grammar: None,
logit_bias: HashMap::new(),
logit_bias: None,
},
stopping_parameters: ValidStoppingParameters {
ignore_eos_token: false,

View File

@ -577,7 +577,7 @@ mod tests {
frequency_penalty: 0.0,
watermark: false,
grammar: None,
logit_bias: HashMap::new(),
logit_bias: None,
},
stopping_parameters: ValidStoppingParameters {
ignore_eos_token: false,