• 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.
    • 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

EkBass

Legendary Coder
Hi.

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:

EkBass

Legendary Coder
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.
Code:
/* This is help.txt for quick help in console
   Commands:
    ---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
 
Top