By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Chat with OpenAIAPI in console


Bronze Coder

For some reason im not able to add code etc. tags to post. Maybe maintenance goin onor something.

Anyway, here's the link to a Chat with OenAIAPI in console.
Link updated in next post.
Last edited:
Well, for some unknown reason i did work with this a bit more.
Lots of it was rewritten, but it was pretty simple after the first round.

Its possible to load a file to bot, catch the latest code it has provided and something else.
/* This is help.txt for quick help in console
    ---help                     - show this help
    ---exit ---quit ---bye      - exit application
    ---clear ---cls             - clear screen
    ---catch show               - show catchCode
    ---catch clear              - clear catchCode
    ---catch file:filename      - write catchCode to file
    ---reset                    - reset short history
    ---history                  - show short history
    ---context                  - show context
    ---load filename            - load text file and send it to AI

    If you close your code inside "<<<" and ">>>", it will be sent to AI as code.
    You can also use <code> and </code> tags.
    Consult readme.txt for more info.

    Thanks, Krisu 2023

See the source code at github -> AiConsoleChat
Very cool! Nice work, I've been looking into creating something similar as well
Hi Malcolm.

This is not so valid code anymore, after OpenAI moved APi towards ChatGPT model. This propably works, but i should update the code some time.

New Threads

Buy us a coffee!

Top Bottom