Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibase 未知异常 #6

Open
SK-Keith opened this issue Dec 12, 2022 · 2 comments
Open

ibase 未知异常 #6

SK-Keith opened this issue Dec 12, 2022 · 2 comments

Comments

@SK-Keith
Copy link

[2022-12-12 18:05:40,513] ERROR in app: Exception on /translate [POST]
Traceback (most recent call last):
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\demo_web_app.py", line 104, in translate
response = gpt.submit_API(prompt=prompt, trun=gpt.output_suffix)
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\inspurai.py", line 164, in submit_API
res = self.response(query,engine=self.engine,
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\inspurai.py", line 147, in response
raise e
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\inspurai.py", line 143, in response
requestId = submit_request(query, temperature, topP, topK, max_tokens, engine, frequencyPenalty,
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\url_config.py", line 55, in submit_request
raise RuntimeWarning(response_text)
RuntimeWarning: {'flag': False, 'errCode': 'IBASE_CONTROLLER_UNKNOWN_EXCEPTION', 'errMessage': 'ibase 未知异常', 'exceptionMsg': 'IBASE_INTERFACE_GET_USER_INTERFACE_EMPTY', 'resData': None}

@SK-Keith
Copy link
Author

看了yuan官网,应该是帐号没有申请开通API使用权限

@XingYuan55
Copy link

如何获取API使用权限啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants