GithubHelp home page GithubHelp logo

lagpixellol / chatgptclibot Goto Github PK

View Code? Open in Web Editor NEW
343.0 343.0 38.0 1.54 MB

ChatGPT Bot in CLI with long term memory support using Embeddings.

License: MIT License

CMake 1.13% C++ 98.83% Batchfile 0.02% Shell 0.03%
chatbot chatgpt chatgpt-api gpt-3 gpt-4 openai

chatgptclibot's Introduction

const void* n = nullptr;

chatgptclibot's People

Contributors

gh-markt avatar lagpixellol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatgptclibot's Issues

Cumulative Token Bloat?

Hey so I've been playing around with this for about 30 minutes now and it seems I've already filled up its memory? I cannot send even short messages to it without it saying "Error when calling API: Max tokens exceeded in messages: 8207 >= 8191"

I don't know how it's supposed to store long term memories, if it can only hold a few before it's using up all the tokens on whatever's going on behind the scenes, it gets impossible to communicate with only a page or two of text worth of memory being stored in the save file thru interacting with it.

am I doing something wrong?
Sorry for the questions if they're obvious or etc, just not understanding why I'm running into this problem when my prompts are very short now

image

llama.cpp

Maybe you could add the long term memory support to llama.cpp or use it as a "local back-end".

Compiling on MacOS M1

Do you have any idea how to or instructions for compiling on an M1 Mac?
I've been trying to build with cmake but I keep running into lots of errors. Do you have any hints?
Thanks!

Feature Request: ElevenLabs Voice API Integration

Hi, I've been using this program for a couple weeks now and I LOVE it! It's allowed me to accomplish so much that I was not able to do with just the bare GPT4 API or the ChatGPT Web interface. Thank you SO much for making this.

I just want to ask if there's any possibility for you to give this program voice output capability for responses, by using something like the ElevenLabs Voice API.

I would be willing to donate to show my support.

Again, thanks so much for what you've made and well wishes to you.

Building in Termux(android)

Hi, is it possible to build this project in termux?

After an hour of trying, I managed to build it, but it crashed upon running.
I also tried to build it in proot, but got lots of errors.

I've lost hope, honestly.

Edit: Fixed, see this comment.

How can I edit the bot?

i want to edit the bot for my use if possible but i cant figure how i know python and java and a little c++

Regenerating response

Hi.

How can i make the bot to regenerate the last response in the same way I could do it with classic ChatGPT conversation window?
Or is that not possible?

disable "Getting embeddings and finding similar chat exchanges for the input..."

i use my custom openai url, it doesnt have embedding models, can we disable it?
my json
{
"debug_reference": false,
"frequency_penalty": 0.0,
"logit_bias": {},
"max_display_length": 100,
"max_reference_length": 0,
"max_short_memory_length": 1,
"max_tokens": 500,
"model": "gpt-3.5-turbo",
"presence_penalty": 0.0,
"search_response": false,
"space_between_exchanges": false,
"temperature": 0.6000000238418579,
"top_p": 1.0
}

API request failed: SSL connect error

Creating folders...
Created folder: "initial"
Created folder: "saved"
Created folder: "documentQA"
Creating folders completed.
Config file does not exist: "config.json"
Creating new config file: "config.json"
Saving config to file: "config.json"
Config saved to file: "config.json"
Creating default prompt file: "initial\Default.txt"
Default prompt file processing completed.
Please enter your OpenAI API key: sk-xxx
Checking API key...
API request failed: SSL connect error
API request failed, please try again.

API request failed in OSX

When I run the latest release on my OSX system, I get the following error:

API request failed: Timeout was reached. 
API request failed, please try again.

I had successfully used this software on a Linux system before, but now, on OSX, it seems to have trouble connecting to the API. I'm not sure if this is related to the program itself or a network issue.

Request for ability to save QA conversation

Hi,

First of all, this project is VERY great. THANKS !

Would it be possible to add a save function in QA mode?

Thanks for the consideration.

PS: I am an interface designer / UX designer, and I would be interested in contributing if you consider producing an interface version in the future.

I can't read code and I trust antivirus!!!

antivirus flagged it every step of the way, also garbage interface.
i'm pretty sure my antivirus deleted some of the files even when i told it not to.
not user friendly at all.

How can I pre-load a large document to generate embeddings?

I have a 4 hour long transcript which is about 5,000 lines and 172,000 characters. It was created by Whisper API. I would like to preload this transcript to generate embeddings, and then ask ChatGPT questions and have it automatically find relevant sections of the transcript via the embeddings and include those sections in the prompt so that it can answer my questions about the transcript.

I tried to just paste a small section of the document with a prompt like:

Remember the following document. I will ask you questions about it later.

###

first line of transcript

second line of transcript

etc.

But the bot immediately responded to the first line (only) as if it was the entire prompt:

The following conversation is set to:
Me: is the prefix of the user, texts start with it are the user input
You: is the prefix of your response, texts start with it are your response
You are an AI chat bot named Sapphire
You are friendly and intelligent

Me: Remember the following document. I will ask you questions about it later.
You: I'm sorry, but I am not capable of remembering a specific document without being provided with it. Can you please provide me with the necessary information or send me the document in question?
Me:

How can I provide a multi-line prompt to the bot, to progressively load in data to then be saved as embeddings?

Or, how can I preload a document to generate embeddings before I start the chat session?

Potential Hard Drive Corruption.

Not sure what happened. Ran the bat file. It said creating folders. It was running on an external drive that had no issues. The disk is no longer recognized and states it must be formatted. Unclear what occurred but definitely regret running this program.

paid feature request

Hey there, could I pay to see a version of this that plays text output via ElevenLabs Voice API? Don't have the skill to do this myself but would be super handy is there was a voice output true/false setting.

No GPT3Bot.exe file?

cant seem to find it or the config file anywhere, not sure if I'm doing something wrong, or what.

Serper.Dev websearch

Like pretty much any tool leveraging the use of LLM models, could we have the ability to user SERPER.dev to make Google Search API calls using a SERPER API key. This would replace the, now removed, internet search capability via bing that GPT-4-0631 had prior to the latest update from OpenAI.

Opening with Visual Studio Community2022

I am not terribly familiar with CMake and related tools, so I apologize if this question/issue is something obvious.

Anyway, what I did was open Visual Studio Community 2022 and then chose File -> Open -> Folder ...and then chose the root folder that was created during the git clone process.

After opening the folder, the output window showed the following error:

1> Working directory: C:/Dev/ChatGPTCLIBot/build/msbuild-vcpkg
1> [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeDetermineSystem.cmake:130 (message):
1> [CMake]   Could not find toolchain file: /scripts/buildsystems/vcpkg.cmake
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:2 (project)
1> [CMake] -- Configuring incomplete, errors occurred!

For reference, this is the complete text that came with the error message:

1> CMake generation started for configuration: 'msbuild-vcpkg'.
1> Environment settings:
1>     CommandPromptType=Native
1>     DevEnvDir=C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\
1>     ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
1>     EXTERNAL_INCLUDE=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\ATLMFC\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um
1>     Framework40Version=v4.0
1>     FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64\
1>     FrameworkDIR64=C:\WINDOWS\Microsoft.NET\Framework64
1>     FrameworkVersion=v4.0.30319
1>     FrameworkVersion64=v4.0.30319
1>     FSHARPINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools
1>     INCLUDE=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\ATLMFC\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um
1>     LIB=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64
1>     LIBPATH=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319
1>     NETFXSDKDir=C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\
1>     Path=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\VCPackages;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\bin\Roslyn;C:\Program Files\Microsoft Visual Studio\2022\Community\Team Tools\Performance Tools\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\\MSBuild\Current\Bin\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\WinSCP\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\Program Files (x86)\Common Files\Propellerhead Software\ReWire\;C:\Program Files\Common Files\Propellerhead Software\ReWire\;C:\Program Files\Calibre2\;C:\Dev\BinDiff\bin;C:\Users\Andy\AppData\Local\Microsoft\WindowsApps;C:\Users\Andy\.dotnet\tools;C:\Users\Andy\AppData\Local\Programs\Microsoft VS Code\bin;C:\+Windows Utilities+\++System Utilities Suite (includes some of the individual tools below)++;;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
1>     PROMPT=$P$G
1>     UCRTVersion=10.0.22621.0
1>     UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
1>     VCIDEInstallDir=C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\
1>     VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\
1>     VCToolsInstallDir=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\
1>     VCToolsRedistDir=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.34.31931\
1>     VCToolsVersion=14.34.31933
1>     VS170COMNTOOLS=C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\
1>     VSCMD_ARG_app_plat=Desktop
1>     VSCMD_ARG_HOST_ARCH=x64
1>     VSCMD_ARG_no_logo=1
1>     VSCMD_ARG_TGT_ARCH=x64
1>     VSCMD_DEBUG=5 
1>     VSCMD_VER=17.4.4
1>     VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Community\
1>     VSSDK150INSTALL=C:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
1>     VSSDKINSTALL=C:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
1>     WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0
1>     WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin\
1>     WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
1>     WindowsSDKLibVersion=10.0.22621.0\
1>     WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\
1>     WindowsSDKVersion=10.0.22621.0\
1>     WindowsSDK_ExecutablePath_x64=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\
1>     WindowsSDK_ExecutablePath_x86=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\
1>     __DOTNET_ADD_64BIT=1
1>     __DOTNET_PREFERRED_BITNESS=64
1>     __VSCMD_PREINIT_PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\WinSCP\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\Program Files (x86)\Common Files\Propellerhead Software\ReWire\;C:\Program Files\Common Files\Propellerhead Software\ReWire\;C:\Program Files\Calibre2\;C:\Dev\BinDiff\bin;C:\Users\Andy\AppData\Local\Microsoft\WindowsApps;C:\Users\Andy\.dotnet\tools;C:\Users\Andy\AppData\Local\Programs\Microsoft VS Code\bin;C:\+Windows Utilities+\++System Utilities Suite (includes some of the individual tools below)++;
1>     SystemDrive=C:
1>     ProgramFiles(x86)=C:\Program Files (x86)
1>     ProgramW6432=C:\Program Files
1>     PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
1>     TMP=C:\Users\Andy\AppData\Local\Temp
1>     PROCESSOR_ARCHITECTURE=AMD64
1>     PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
1>     ThreadedWaitDialogDpiContext=-4
1>     PkgDefApplicationConfigFile=C:\Users\Andy\AppData\Local\Microsoft\VisualStudio\17.0_9e08851d\devenv.exe.config
1>     PROCESSOR_REVISION=7100
1>     ServiceHubLogSessionKey=8E6C376A
1>     FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
1>     FPS_BROWSER_USER_PROFILE_STRING=Default
1>     LOGONSERVER=\\HOME-PC
1>     TEMP=C:\Users\Andy\AppData\Local\Temp
1>     USERNAME=Andy
1>     SystemRoot=C:\WINDOWS
1>     VSSKUEDITION=Community
1>     OneDrive=G:\OneDrive
1>     USERDOMAIN_ROAMINGPROFILE=HOME-PC
1>     CommonProgramFiles=C:\Program Files\Common Files
1>     VisualStudioDir=C:\Users\Andy\Documents\Visual Studio 2022
1>     ProgramData=C:\ProgramData
1>     VSAPPIDDIR=C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\
1>     HOMEPATH=\Users\Andy
1>     OneDriveConsumer=G:\OneDrive
1>     COMPUTERNAME=HOME-PC
1>     ALLUSERSPROFILE=C:\ProgramData
1>     CommonProgramW6432=C:\Program Files\Common Files
1>     OneDriveCommercial=G:\OneDrive
1>     VisualStudioEdition=Microsoft Visual Studio Community 2022
1>     __PSLockDownPolicy=0
1>     SignInWithHomeTenantOnly=False
1>     SESSIONNAME=Console
1>     DriverData=C:\Windows\System32\Drivers\DriverData
1>     HOMEDRIVE=C:
1>     windir=C:\WINDOWS
1>     NUMBER_OF_PROCESSORS=24
1>     OS=Windows_NT
1>     ProgramFiles=C:\Program Files
1>     ComSpec=C:\WINDOWS\system32\cmd.exe
1>     VSAPPIDNAME=devenv.exe
1>     VSLANG=1033
1>     VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
1>     PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
1>     APPDATA=C:\Users\Andy\AppData\Roaming
1>     USERDOMAIN=HOME-PC
1>     PROCESSOR_LEVEL=23
1>     USERPROFILE=C:\Users\Andy
1>     LOCALAPPDATA=C:\Users\Andy\AppData\Local
1>     VisualStudioVersion=17.0
1>     CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
1>     PUBLIC=C:\Users\Public
1>     ForceIdentityAuthenticationType=Embedded
1>     MSBuildLoadMicrosoftTargetsReadOnly=true
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Visual Studio 17 2022" -A x64  -DCMAKE_TOOLCHAIN_FILE:FILEPATH="/scripts/buildsystems/vcpkg.cmake"  "C:\Dev\ChatGPTCLIBot" 2>&1"
1> Working directory: C:/Dev/ChatGPTCLIBot/build/msbuild-vcpkg
1> [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeDetermineSystem.cmake:130 (message):
1> [CMake]   Could not find toolchain file: /scripts/buildsystems/vcpkg.cmake
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:2 (project)
1> [CMake] -- Configuring incomplete, errors occurred!
1> 'C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Visual Studio 17 2022" -A x64  -DCMAKE_TOOLCHAIN_FILE:FILEPATH="/scripts/buildsystems/vcpkg.cmake"  "C:\Dev\ChatGPTCLIBot" 2>&1"' execution failed with error: ''C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Visual Studio 17 2022" -A x64  -DCMAKE_TOOLCHAIN_FILE:FILEPATH="/scripts/buildsystems/vcpkg.cmake"  "C:\Dev\ChatGPTCLIBot" 2>&1"' returned with exit code: 1'.

GPT 4 API Error

set the model in config.json to be
"model": "gpt-4",
and upon using it I get this error
API returned error: This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?

Program Terminating during Create new Document Q&A

During the process of creating a new doc Q&A I've had it fail 3 times in a row when processing a text document, one I've processed many dozens of times before, but I add a bit to it and it gets longer over time. suddenly today the program keeps suddenly crashing whenever I try to go through the same process I always go through. Is there a max length the text document can be or any other reasons why it would just randomly terminate like this during the create doc process?

Hitting Token Limit?

I'm not so sure how I can benefit from the current CLI with infinite memory as I'm not very familiar with how to set it up so that I can recall old chats and continue infinitely.

How do you use embedding to escape the constraint for 4096 tokens?

I'm really curious about this, since as far as I know that embedding can be only used to calculate the similarity between texts. While the whole conversation will be counted as the input query for GPT3.5-turbo model, I can really not find a way to find a relation between your instruction even I checked the printed logs.

Keep hitting the max tokens limit

I don't understand why you say your bot has a big memory, because when I submit a text in small parts I keep hitting the max token limit...
For example: "Error when calling API: Max tokens exceeded in messages: 4103 >= 4095"

Not tracking variables.

So ive been using this bot for a while and it's great! but even with long-term memory, it still "forget" things from time to time, for example: bot sometimes can still jump out of DAN mode even when he knows he's DAN.

Is it possible to add a file like the initial prompts, where bot will first scan through the file before moving onto the chat history?

Harmful conduct. "skill issue lol."

          skill issue lol.

this is an opensource project lmao, no one forced you into installing this, and you can read the code and compile it by yourself to avoid potential virus.
garbage interface? it's YOUR job to contribute to this project and improve it, not mine lol because im not paid for a cent.
have some respect you neet, go touch some grass, quit github forever so people like you won't poison the environment here.

Originally posted by @LagPixelLOL in #22 (comment)

Error parsing JSON: unexpected ','; expected end of input

I am consistently getting the following error when using the application (even when using the latest Development build):

Error when calling API: Error parsing JSON: [json.exception.parse_error.101] parse error at line 1, column 8: syntax error while parsing value - unexpected ','; expected end of input

2023-11-09-091449_1356x246_scrot

Essentially, this happens after the output to a query. Could it be that the OpenAI API is returning non-standard JSON with trailing , symbols? Or that the API output looks different to the expected output?

I think the issue is happening somewhere in handle_streamed_response inside main/interface/network/Network.cpp

Unfortunately, I am unable to compile on my Linux (Manjaro) machine to confirm the cause or find a fix. But perhaps an additional line to remove a trailing , here might help?

//Remove leading and trailing whitespaces and new lines.
s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](unsigned char c){return !std::isspace(c) && c != '\n';}));
s.erase(std::find_if(s.rbegin(), s.rend(), [](unsigned char c){return !std::isspace(c) && c != '\n';}).base(), s.end());

For completeness, my compile error is:

CMake Error at CMakeLists.txt:18 (find_package):
  Could not find a package configuration file provided by "CURL" with any of
  the following names:

    CURLConfig.cmake
    curl-config.cmake

  Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
  "CURL_DIR" to a directory containing one of the above files.  If "CURL"
  provides a separate development package or SDK, be sure it has been
  installed.

I am not super familiar with CMake but I do have cUrl installed on my machine. It might be useful to have a section in the README about what is needed to compile, as this is making me think I need to pass a specific parameter to CMake or provide it with cUrl source code in someway,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.