Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claude to ChatGPT does not stream #5

Open
johnd0e opened this issue Aug 20, 2023 · 15 comments
Open

Claude to ChatGPT does not stream #5

johnd0e opened this issue Aug 20, 2023 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@johnd0e
Copy link

johnd0e commented Aug 20, 2023

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

@Amm1rr Amm1rr self-assigned this Aug 21, 2023
@Amm1rr Amm1rr added the bug Something isn't working label Aug 21, 2023
@zexry619
Copy link

zexry619 commented Aug 24, 2023

Has this been fixed for now bro @Amm1rr ?

Because it seems interesting that it can be used in various GUIs for openai

@Amm1rr
Copy link
Owner

Amm1rr commented Aug 25, 2023

Of course @zexry619

It is available and working right now.

Streaming response is not ready yet for Claude, but without streaming it is working nicely.

Do you have problems with streaming response with ChatGPT or Bard?

Just pull request again, because of the issue you had with Claude's session, I updated the codes for Claude's endpoints.

Affected endpoints:

  • /claude
  • /claude/v1/chat/completions

I'm into using Claude instead of ChatGPT in some projects like Auto Code Review.

@zexry619
Copy link

image
I've done a git pull.
But there is still no change here.
Did I make mistake?

@Amm1rr
Copy link
Owner

Amm1rr commented Aug 25, 2023

Which Claude endpoints did you check?

  • /claude
  • /claude/v1/chat/completions

@zexry619
Copy link

This :

/claude/v1/chat/completions
image

@Amm1rr
Copy link
Owner

Amm1rr commented Aug 25, 2023

Is there also problem with /claude?

@zexry619
Copy link

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

@Amm1rr
Copy link
Owner

Amm1rr commented Aug 25, 2023

Bro, you gave me a shock at first : ) nice

Can you please try ChatGPT or Bard with True stream?

@zexry619
Copy link

I'm not planning on using anything else just want to use claude, however if you're planning on making an imitation openai endpoint for bard I might be more interested :)

@Amm1rr
Copy link
Owner

Amm1rr commented Aug 25, 2023

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!

@zexry619
Copy link

Nice!. I'll be waiting for an update for this stream issue!.

@zexry619
Copy link

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

@Amm1rr
Copy link
Owner

Amm1rr commented Aug 28, 2023

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.

@johnd0e
Copy link
Author

johnd0e commented Aug 29, 2023

  • /claude: no difference
  • /claude/v1/chat/completions: Error : request() got an unexpected keyword argument 'stream'

@Amm1rr
Copy link
Owner

Amm1rr commented Aug 29, 2023

This was my final attempt to prevent having to make changes to the classes. :)

However, it seems that making revisions is the only option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants