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

Feature request: stdout callback #128

Closed
Venthe opened this issue Apr 5, 2023 · 3 comments
Closed

Feature request: stdout callback #128

Venthe opened this issue Apr 5, 2023 · 3 comments

Comments

@Venthe
Copy link

Venthe commented Apr 5, 2023

Hello; I'm currently writing a web UI for the ChatGPT4All. I've faced an issue where the only way for me to get output is to consume it at end. I'd like to request a change which will allow to pass a stdout callback function - which might be done without breaking backwards compatibility.

It could be done similar to this: https://github.com/Venthe/chatgpt4all-webui/blob/main/server/prompt_parser.py

I've also added ID there but it is of co consequence, as it can be a part of the callback. Same thing with type, as I've ended up doing it indempotently.

Proposal for the callback signature:
'''python
def callback(responseCharacter)
'''

Where the default could be as it is now, sys.stdout.print

@bmschmidt
Copy link
Collaborator

bmschmidt commented Apr 5, 2023 via email

@therealjuanmartinez
Copy link

I came to request the same - glad to see there's already some emphasis towards this

@Venthe
Copy link
Author

Venthe commented Apr 17, 2023

@bmschmidt if so, then I believe I can close the issue. Thanks!

@Venthe Venthe closed this as completed Apr 17, 2023
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

3 participants