Skip to content

"New Chat" created per word streamed, when you click it during message generation. #183

@leochoo

Description

@leochoo

Describe the bug
When you click on "New Chat" while the message is being streamed, "New Chat" will be created per word streamed it seems.

To Reproduce
Steps to reproduce the behavior:

  1. Choose any model and generate a message
  2. While generating, Click on 'New Chat'
  3. You will see a creation of New Chat, which stop when the answer stream stops.

Expected behavior
Message generation stops and the new chat starts.

Screenshots
CleanShot 2023-12-06 at 19 26 35

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Edge
  • Version 119.0.2151.72 (Official build) (arm64)

Additional context
I'm just using frontend. I am NOT using Docker. I am NOT using the backend.
Instead, I'm using the regular ollama previously installed.
I'm running it via npm run dev and ollama via ollama serve.
Frontend .env points to OLLAMA_API_BASE_URL='http://127.0.0.1:11434/api'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions