Spaces:
Paused
Paused
Upload 9 files
Browse files237 unmodified lines238239240241242243244245246247248249250237 unmodified linesasync def try_one(model_id, match_type):async with semaphore:full_model = f"{model_id}:free" if ":free" not in model_id else model_idprint(f"[try_best] Testing model: {full_model}")result = await self.try_model_direct(session, full_model, api_key)if result:print(f"[try_best] Result for {full_model}: success={result.get('success')}, error={result.get('error', 'none')}")else:print(f"[try_best] Result for {full_model}: None")return resulttasks = [try_one(m, t) for m, t in candidates]237 unmodified lines238239240241242243244245246247248249250237 unmodified linesasync def try_one(model_id, match_type):async with semaphore:# 模型ID已经是完整格式(包含:free),不需要再添加print(f"[try_best] Testing model: {model_id}")result = await self.try_model_direct(session, model_id, api_key)if result:print(f"[try_best] Result for {model_id}: success={result.get('success')}, error={result.get('error', 'none')}")else:print(f"[try_best] Result for {model_id}: None")return resulttasks = [try_one(m, t) for m, t in candidates]
src/model_tester.py+5-5