Skip to content

Commit 91cd319

Browse files
author
shuang
committed
fix error
1 parent 166fd0c commit 91cd319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gptbioinsightor/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def openai_client(msgs, apikey, model, provider, base_url=None, sys_prompt=None,
2525
top_p= 0.7,
2626
)
2727
except APIStatusError as e:
28-
raise ApiBalanceLow(provider, e.status_code, e.message)
28+
raise ApiBalanceLow(provider, e.message, e.response, e.body)
2929

3030
return response.choices[0].message.content
3131

0 commit comments

Comments
 (0)