poc: removes redundant exception
This commit is contained in:
parent
47b284cdff
commit
c3f269798f
1 changed files with 0 additions and 2 deletions
|
|
@ -26,5 +26,3 @@ def get_ai_service(api_key: str, model_name: str = AIModelName.GPT.name, version
|
|||
)
|
||||
except KeyError as ke:
|
||||
raise ValueError("Unknown model or version: %s" % ke)
|
||||
|
||||
raise ValueError("Unknown model name: %s" % model_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue