Skip to content

Instantly share code, notes, and snippets.

@jamesr66a
Created October 5, 2023 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesr66a/80416ebf94e8aa6a9b23277c2cffd1c8 to your computer and use it in GitHub Desktop.
Save jamesr66a/80416ebf94e8aa6a9b23277c2cffd1c8 to your computer and use it in GitHub Desktop.
ERROR: Error responding to query
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/fastapi_poe/base.py", line 174, in handle_query
async for event in self.get_response(query):
File "/usr/local/lib/python3.10/dist-packages/fireworks/serving/poe_text_completion_server/fw_poe_server_bot.py", line 114, in get_response
async for response in ChatCompletion.acreate(
File "/usr/local/lib/python3.10/dist-packages/fireworks/client/base_completion.py", line 145, in _acreate_streaming
async for event in _parse_sse_async(response, cls.stream_response_class):
File "/usr/local/lib/python3.10/dist-packages/fireworks/client/base_completion.py", line 16, in _parse_sse_async
async for line in lines:
File "/usr/local/lib/python3.10/dist-packages/fireworks/client/api_client.py", line 116, in post_request_async_streaming
for sse in event_source.iter_sse():
File "/usr/local/lib/python3.10/dist-packages/httpx_sse/_api.py", line 28, in iter_sse
self._check_content_type()
File "/usr/local/lib/python3.10/dist-packages/httpx_sse/_api.py", line 18, in _check_content_type
raise SSEError(
httpx_sse._exceptions.SSEError: Expected response Content-Type to be 'text/event-stream', got 'application/json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment