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

Streaming #29

Open
thuongtin opened this issue May 13, 2023 · 18 comments
Open

Streaming #29

thuongtin opened this issue May 13, 2023 · 18 comments
Labels
enhancement New feature or request

Comments

@thuongtin
Copy link

Impressed with your project. But currently, does it not support streaming?

@HemulGM
Copy link
Owner

HemulGM commented May 13, 2023

Impressed with your project. But currently, does it not support streaming?

The client, no, but the wrapper allows. But while it will be difficult to implement in the client. Because he doesn't use HTML

@jiahut
Copy link

jiahut commented May 13, 2023

This feature is highly important, and I sincerely hope that it can be implemented.

@Yona544
Copy link

Yona544 commented Jul 27, 2023

Can you explain what you mean with streaming

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544 In the official client via the web, the text appears as it is generated by the neural network. It's not just animation for beauty. In the API, there are two different ways to get a response from a neural network.
Simple. Request - response.
Streaming. Request and sequential receipt of responses from the neural network. Usually, several tokens at a time.
In the second case, the answer comes a little faster than in the first. Because you don’t have to wait until the neural network generates the entire answer.

@Yona544
Copy link

Yona544 commented Jul 27, 2023 via email

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544

  1. /system And your text
  2. Just create funcs folder next to exe

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544 Oh, and there is no actual build to work with the features. Not yet. This is being tested. Requires manual build.

@Yona544
Copy link

Yona544 commented Jul 27, 2023 via email

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544 If the folder exists, all dll files are loaded from it. If libraries contain a specific exportable function that returns a set of available GPT functions, then it uses those functions to work with GPT.
For functions to work in GPT requests, you must enable their use in the general settings (or chat settings) and select a model that can work with functions. And not all models can work with them. One of the models that can work with them is gpt-3.5-turbo-0613.

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544 And we have something like a copilot.
https://github.com/AliDehbansiahkarbon/ChatGPTWizard
Of course, it does not work in real time, but it can help

@Yona544
Copy link

Yona544 commented Jul 27, 2023 via email

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544
In general settings, you can see a list of loaded functions from libraries.
image
image

Next, we select a model and enable features in the chat settings.
image

Now we can make normal neural network requests, and if it considers that one of the functions is required to complete the request, it asks to perform it.
image
image

We accept the request and allow the function to be executed (or there is an auto mode). After that, the data from the function is transferred to the neural network and it, using them, answers our question
image

@Yona544
Copy link

Yona544 commented Jul 27, 2023 via email

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544
Yes, but we can do much more. For example, work with a computer.
image

image

Or even edit files. Such functions can be done.

@Yona544
Copy link

Yona544 commented Jul 27, 2023 via email

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544
I gave you a link above to an existing plugin for the environment. He does just that.
https://github.com/AliDehbansiahkarbon/ChatGPTWizard

@Yona544
Copy link

Yona544 commented Jul 27, 2023 via email

@HemulGM
Copy link
Owner

HemulGM commented Jul 27, 2023

@Yona544 Take it as a basis and improve

@HemulGM HemulGM added the enhancement New feature or request label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants