WebAI-to-API: Claude to ChatGPT does not stream

Testing http://127.0.0.1:8000/v1/chat/completions/Claude

With "stream": false it works.

With "stream": true it outputs: Error : __enter__

P.S. http://127.0.0.1:8000/v1/chat/completions is also ok

About this issue

  • Original URL
  • State: open
  • Created 10 months ago
  • Reactions: 1
  • Comments: 15 (7 by maintainers)

Most upvoted comments

I changed the streaming function for Claude and pushed a new branch called stream.

Unfortunately, in recent days I have not been able to run the python scripts to see the results.

Please clone and test this new branch and check with Claude to let me know how it is performing.

You can try looking at this repository: https://github.com/oldweipro/claude-to-chatgpt

For stream claude there is no problem. I hope you can develop it for google bard. @Amm1rr

I get it. I like this model too.

I want to use Bard and Claude rather than ChatGPT and link it to OpenAI. But first, I need to make sure it’s stable.

Streaming for fast responses matters too.

Streaming is an issue for some users with all AI models, unfortunately not for myself.

By the way, I’ll improve this over time.

Thanks!

No, that’s fine, /claude/v1/chat/completions is also fine if the stream is set to false.