- 共 0 条
- 全部回答
-
暗云飞飞 普通会员 1楼
dashscope.common.error.InputRequired: prompt or messages is required! // Werkzeug Debugger InputRequired
dashscope.common.error.InputRequired: prompt or messages is required!
Traceback (most recent call last)
File "/www/server/pyporject_evn/0001_venv/lib/python3.10/site-packages/flask/app.py", line 1488, in
__call__) -> cabc.Iterable[bytes]:"""The WSGI server calls the Flask application object as theWSGI application. This calls :meth:`wsgi_app`, which can bewrapped to apply middleware."""return self.wsgi_app(environ, start_response)File "/www/server/pyporject_evn/0001_venv/lib/python3.10/site-packages/flask/app.py", line 1466, in
wsgi_apptry:ctx.push()response = self.full_dispatch_request()except Exception as e:error = eresponse = self.handle_exception(e)except: # noqa: B001error = sys.exc_info()[1]raisereturn response(environ, start_response)finally:File "/www/server/pyporject_evn/0001_venv/lib/python3.10/site-packages/flask/app.py", line 1463, in
wsgi_appctx = self.request_context(environ)error: BaseException | None = Nonetry:try:ctx.push()response = self.full_dispatch_request()except Exception as e:error = eresponse = self.handle_exception(e)except: # noqa: B001error = sys.exc_info()[1]File "/www/server/pyporject_evn/0001_venv/lib/python3.10/site-packages/flask/app.py", line 872, in
full_dispatch_requestrequest_started.send(self, _async_wrapper=self.ensure_sync)rv = self.preprocess_request()if rv is None:rv = self.dispatch_request()except Exception as e:rv = self.handle_user_exception(e)return self.finalize_request(rv)def finalize_request(self,rv: ft.ResponseReturnValue | HTTPException,File "/www/server/pyporject_evn/0001_venv/lib/python3.10/site-packages/flask/app.py", line 870, in
full_dispatch_requesttry:request_started.send(self, _async_wrapper=self.ensure_sync)rv = self.preprocess_request()if rv is None:rv = self.dispatch_request()except Exception as e:rv = self.handle_user_exception(e)return self.finalize_request(rv)def finalize_request(File "/www/server/pyporject_evn/0001_venv/lib/python3.10/site-packages/flask/app.py", line 855, in
dispatch_requestand req.method == "OPTIONS"):return self.make_default_options_response()# otherwise dispatch to the handler for that endpointview_args: dict[str, t.Any] = req.view_args # type: ignore[assignment]return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]def full_dispatch_request(self) -> Response:"""Dispatches the request and on top of that performs requestpre and postprocessing as well as HTTP exception catching anderror handling.File "/www/python/0001/hello.py", line 19, in
generate# 获取 GET 请求中的提示prompt = request.args.get('prompt', default='', type=str)# 调用生成函数response = dashscope.Generation.call(model='qwen-1.8b-chat',prompt=prompt,seed=1234,top_p=0.8,result_format='message',File "/www/server/pyporject_evn/0001_venv/lib/python3.10/site-packages/dashscope/aigc/generation.py", line 123, in
callGenerator[GenerationResponse, None, None]]: Ifstream is True, return Generator, otherwise GenerationResponse."""if (prompt is None or not prompt) and (messages is Noneor not messages):raise InputRequired('prompt or messages is required!')if model is None or not model:raise ModelRequired('Model is required!')task_group, function = _get_task_group_and_task(__name__)if plugins is not None:headers = kwargs.pop('headers', {})
dashscope.common.error.InputRequired: prompt or messages is required!
This is the Copy/Paste friendly version of the traceback.
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.Console Locked
The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.
更多回答
网站公告
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部
