mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
fix: allow api call in stream route + get_prompt error
This commit is contained in:
@@ -63,7 +63,8 @@ class AnswerResource(Resource, BaseAnswerResource):
|
||||
data = request.get_json()
|
||||
if error := self.validate_request(data):
|
||||
return error
|
||||
processor = StreamProcessor(data, None)
|
||||
decoded_token = getattr(request, "decoded_token", None)
|
||||
processor = StreamProcessor(data, decoded_token)
|
||||
try:
|
||||
processor.initialize()
|
||||
if not processor.decoded_token:
|
||||
|
||||
Reference in New Issue
Block a user