runtime error
Exit code: 1. Reason: /app.py", line 74, in <module> @app.post("/v1/mobile/chat") ~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 2953, in decorator self.add_api_route( ~~~~~~~~~~~~~~~~~~^ path, ^^^^^ ...<23 lines>... generate_unique_id_function=generate_unique_id_function, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 2888, in add_api_route route = route_class( self.prefix + path, ...<27 lines>... ), ) File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 1178, in __init__ _populate_api_route_state( ~~~~~~~~~~~~~~~~~~~~~~~~~^ cast(_APIRouteLike, self), ^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<26 lines>... strict_content_type=strict_content_type, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 1044, in _populate_api_route_state route.response_field = create_model_field( ~~~~~~~~~~~~~~~~~~^ name=response_name, ^^^^^^^^^^^^^^^^^^^ type_=route.response_model, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mode="serialization", ^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/fastapi/utils.py", line 75, in create_model_field raise fastapi.exceptions.FastAPIError( _invalid_args_message.format(type_=type_) ) from None fastapi.exceptions.FastAPIError: Invalid args for response field! Hint: check that <class '__main__.ChatResponseStream'> is a valid Pydantic field type. If you are using a return type annotation that is not a valid Pydantic field (e.g. Union[Response, dict, None]) you can disable generating the response model from the type annotation with the path operation decorator parameter response_model=None. Read more: https://fastapi.tiangolo.com/tutorial/response-model/
Container logs:
Fetching error logs...