Comments (4)
This is a great idea, I'll implement this in the next commit :)
from llmchat.
Feature added, make sure to set the Bot.initial_prompt
value in your config file.
from llmchat.
edit: nevermind I'm a dummy and this was already a feature with reminder
Is this just the initial prompt in the chat or is it the actual system prompt? Like I'm trying to build a dungeon master bot and I have a fairly long prompt with a ton of commands for use in a small server with a couple of friends.
As the game goes on if GPT forgets (or its trimmed from the request) the game becomes unplayable. The prompt specifies that the ai recount important events and the current state of the game in each message so loosing the previous chats doesn't matter so much.
I realize it would be far better just to put commands within code but my skills there are fairly limited right now and besides I want this to be something I can change over time with different games and prompts.
from llmchat.
It's an actual system prompt always inserted at the beginning of the transcript using the system role in OpenAI's API. I find that the model usually does forget that prompt, which is why I implemented reminder
which seems to work a lot better.
from llmchat.
Related Issues (20)
- Unable to import client HOT 14
- Failed to build PyAudio HOT 4
- PyNaCl library needed but already installed HOT 1
- Toggle Audiobook mode via Discord /command HOT 3
- error loading model: failed to open models/llama/Drararara_llama-13B-ggml: Permission denied HOT 4
- Commands to switch the system/reminder values to different prompts would be really neat
- Is there a way to have it only respond if you say a certain word first? HOT 2
- Error HOT 1
- ModuleNotFoundError: No module named 'discord' HOT 4
- Discord Audio Client error
- Exception thrown while trying to generate message: string indices must be integers HOT 2
- Runtime issue: module 'openai' has no attribute 'aiosession' HOT 3
- silero.py dependency gives error on os.mkdir("models/torch") if dir does not exist
- Random trashy output
- Crash when two messages are sent before input is generated
- Voice Channel Connection Error HOT 1
- AttributeError: module 'discord' has no attribute 'AudioSink'
- no reminder value in config.example.ini HOT 1
- {date} value in prompts? HOT 2
- /purgememory command? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llmchat.