Poe上所有的机器人 转 OpenAI API (新增非流式输出、支持NextChat等平台)

大佬牛逼,学习了,0V0大佬也牛逼,流浪的心大佬也牛逼,大帅哥大佬也牛逼,三lue大佬也牛逼,linzong也牛逼 这个帖子里全是牛逼大佬啊

确实可以了,谢谢两位大佬

牛的,不过目前发现Gpt4o的识图功能用不了,期待更新 :smiling_face_with_three_hearts:

1 个赞

POE这么强大哈

大佬nb,期待更新支持图片功能

强啊

超级牛的

是不是已经不能用了大佬

官方那边出错了,不过说又好了,可以测一下

确实恢复了

From #develop:ai to 资源荟萃

这个还可以用吗,请求报错了

poe2openai-1  | Error in Poe bot: Bot request to claude-3.5-sonnet failed on try 0 
poe2openai-1  |  BotError('{"allow_retry": true, "text": "Internal server error (error_id: bf7597da-a1ce-42b5-9f7f-8e60faf66d72)"}')
poe2openai-1  | Error in Poe bot: Bot request to claude-3.5-sonnet failed on try 1 
poe2openai-1  |  BotError('{"allow_retry": true, "text": "Internal server error (error_id: d566ae12-44a8-4cf4-a8db-ffcd994ea10e)"}')
poe2openai-1  | INFO:     100.65.1.3:10849 - "POST /v1/chat/completions HTTP/1.1" 200 OK
poe2openai-1  | ERROR:    Exception in ASGI application
poe2openai-1  | Traceback (most recent call last):
poe2openai-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 257, in __call__
poe2openai-1  |     await wrap(partial(self.listen_for_disconnect, receive))
poe2openai-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 253, in wrap
poe2openai-1  |     await func()
poe2openai-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 230, in listen_for_disconnect
poe2openai-1  |     message = await receive()
poe2openai-1  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 534, in receive
poe2openai-1  |     await self.message_event.wait()
poe2openai-1  |   File "/usr/local/lib/python3.9/asyncio/locks.py", line 226, in wait
poe2openai-1  |     await fut
poe2openai-1  | asyncio.exceptions.CancelledError: Cancelled by cancel scope 7fcb5d677970
poe2openai-1  | 
poe2openai-1  | During handling of the above exception, another exception occurred:
poe2openai-1  | 
poe2openai-1  |   + Exception Group Traceback (most recent call last):
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
poe2openai-1  |   |     result = await app(  # type: ignore[func-returns-value]
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
poe2openai-1  |   |     return await self.app(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
poe2openai-1  |   |     await super().__call__(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
poe2openai-1  |   |     await self.middleware_stack(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
poe2openai-1  |   |     raise exc
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
poe2openai-1  |   |     await self.app(scope, receive, _send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
poe2openai-1  |   |     await self.app(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
poe2openai-1  |   |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
poe2openai-1  |   |     raise exc
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
poe2openai-1  |   |     await app(scope, receive, sender)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
poe2openai-1  |   |     await self.middleware_stack(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
poe2openai-1  |   |     await route.handle(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
poe2openai-1  |   |     await self.app(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
poe2openai-1  |   |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
poe2openai-1  |   |     raise exc
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
poe2openai-1  |   |     await app(scope, receive, sender)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app
poe2openai-1  |   |     await response(scope, receive, send)
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 257, in __call__
poe2openai-1  |   |     await wrap(partial(self.listen_for_disconnect, receive))
poe2openai-1  |   |   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 680, in __aexit__
poe2openai-1  |   |     raise BaseExceptionGroup(
poe2openai-1  |   | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
poe2openai-1  |   +-+---------------- 1 ----------------
poe2openai-1  |     | Traceback (most recent call last):
poe2openai-1  |     |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 253, in wrap
poe2openai-1  |     |     await func()
poe2openai-1  |     |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 242, in stream_response
poe2openai-1  |     |     async for chunk in self.body_iterator:
poe2openai-1  |     |   File "/app/app.py", line 82, in adaptive_streamer
poe2openai-1  |     |     async for partial in poe_bot_stream_partials_generator:
poe2openai-1  |     |   File "/app/app.py", line 51, in get_poe_bot_stream_partials
poe2openai-1  |     |     async for partial in get_bot_response(
poe2openai-1  |     |   File "/usr/local/lib/python3.9/site-packages/fastapi_poe/client.py", line 350, in stream_request
poe2openai-1  |     |     async for message in stream_request_base(
poe2openai-1  |     |   File "/usr/local/lib/python3.9/site-packages/fastapi_poe/client.py", line 483, in stream_request_base
poe2openai-1  |     |     async for message in ctx.perform_query_request(
poe2openai-1  |     |   File "/usr/local/lib/python3.9/site-packages/fastapi_poe/client.py", line 229, in perform_query_request
poe2openai-1  |     |     raise BotError(event.data)
poe2openai-1  |     | fastapi_poe.client.BotError: {"allow_retry": true, "text": "Internal server error (error_id: 888d8443-9552-4d3e-86ab-c1cf50872fa6)"}
poe2openai-1  |     +------------------------------------

你可以试试 GitHub - RipperTs/poe2openai: poe官方sdk转换openai接口规范

大佬强呀!晚上来研究研究!

和楼主的这个报了相同的错误

注意模型大小写

1 个赞

是我傻了,可以用 :upside_down_face:
谢谢

不客气,我只是搬运工 :smile: