Update api/config.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
b84832e999
commit
26fb3745f9
1 changed files with 4 additions and 2 deletions
|
|
@ -3355,8 +3355,10 @@ def resolve_model_reasoning_efforts(
|
|||
if isinstance(_prov_entry, dict):
|
||||
_re_list = _prov_entry.get("reasoning_efforts")
|
||||
if isinstance(_re_list, list) and _re_list:
|
||||
return [str(x).strip().lower() for x in _re_list
|
||||
if str(x).strip().lower() in {*VALID_REASONING_EFFORTS, "none"}]
|
||||
_filtered = [str(x).strip().lower() for x in _re_list
|
||||
if str(x).strip().lower() in {*VALID_REASONING_EFFORTS, "none"}]
|
||||
if _filtered:
|
||||
return _filtered
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue