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

concurrent execution of chatgpt_api.py handle_post_chat_completions produce chaos #695

Open
liaoweiguo opened this issue Feb 12, 2025 · 3 comments

Comments

@liaoweiguo
Copy link

any hints?

@liaoweiguo
Copy link
Author

streaming mode

@liaoweiguo
Copy link
Author

没办法,强制单线程先:

  async def handle_post_chat_completions(self, request):
    async with self._lock:
      data = await request.json()
      if DEBUG >= 2: print(f"[ChatGPTAPI] Handling chat completions request from {request.remote}: {data}")
      stream = data.get("stream", False)

@d6638219
Copy link

I've also appeared

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants