development #1

Merged
AllfatherHatt merged 157 commits from development into master 2025-06-14 15:47:26 +02:00

157 Commits

Author SHA1 Message Date
22767ad398 Added command aliases 2025-05-18 13:24:16 +02:00
88ecf7911f Attempting to make set channel behavior be nice 2025-05-18 13:18:50 +02:00
1a390c3d25 Attempting to make recruitment channel behave 2025-05-18 13:12:25 +02:00
7a9313d5a5 Removing unsupported escape character 2025-05-18 13:07:11 +02:00
a5ef741ad7 wtf questions 2025-05-18 13:03:21 +02:00
9a3e5860a7 Attempting to fix questions 2025-05-18 12:58:41 +02:00
38414027ec Updated recruitment cog 2025-05-18 12:51:52 +02:00
0483c2d8e6
Merge pull request #29 from T-BENZIN/development
+ Added openai_completion.py for later use as a external script for working with ChatGPT
2025-03-18 16:22:46 +01:00
b93ae09b69 + Applied debug decorator to some functions and methods 2025-03-18 19:54:34 +05:00
881ef42f42 + Added debug decorator 2025-03-18 19:50:12 +05:00
d35110a83b + Added openai_completion.py for later use as a external script for working with ChatGPT 2025-03-17 21:43:15 +05:00
ae866894a3 Trying to update messages 2025-03-16 14:25:10 +01:00
dc5bce9ca4 Re-adding max tokens 2025-03-16 14:14:56 +01:00
f22c77e2a1 Merge branch 'development' of https://github.com/Kanium/KaniumCogs into development 2025-03-16 14:11:00 +01:00
1a34585d33 No max tokens, this is surely safe 2025-03-16 14:10:49 +01:00
39039fe188
Merge pull request #28 from T-BENZIN/development
- Removed some condition check that some guy put in there
2025-03-16 14:00:45 +01:00
6e34f36b8b - Removed some condition check that some guy put in there 2025-03-16 17:58:51 +05:00
b843a4ef58 Adding debug stuff 2025-03-16 13:48:36 +01:00
341a68c045 Trying to debug the weather, so many mayflies 2025-03-16 13:41:15 +01:00
ac14895381 I can spell, don't check 2025-03-16 13:33:02 +01:00
62972399a6 STARES AT FORECAST - info 2025-03-16 13:30:48 +01:00
cc4e7ae528 No more naughty, all is fine 2025-03-16 13:22:48 +01:00
931d1b7298 Doing naughty stuff, don't look 2025-03-16 13:18:11 +01:00
de39425587 Merge branch 'development' of https://github.com/Kanium/KaniumCogs into development 2025-03-16 13:09:24 +01:00
c5b7ea3419 moving api key init 2025-03-16 13:09:21 +01:00
ed1995d7f2
Merge pull request #27 from T-BENZIN/development
~ Changed time_now function to return string instead of datetime object
2025-03-16 13:05:24 +01:00
52113f93ae ~ Changed time_now function to return string instead of datetime object 2025-03-16 17:03:55 +05:00
866b94bb1e Merge branch 'development' of https://github.com/Kanium/KaniumCogs into development 2025-03-16 12:57:21 +01:00
ea391f7104
Merge pull request #26 from T-BENZIN/development
- Removed tool call from tool role message
2025-03-16 12:45:12 +01:00
e3c931650b - Removed tool call from tool role message 2025-03-16 16:41:14 +05:00
d6196e2ac2 Merge branch 'development' of https://github.com/Kanium/KaniumCogs into development 2025-03-16 12:40:49 +01:00
7b04c6f82a COmmenting on stuff 2025-03-16 12:40:47 +01:00
d083039a75
Merge pull request #25 from T-BENZIN/development
~ Fixed the lack of tool calls in assistant message
2025-03-16 12:37:07 +01:00
c1cfbfa02d ~ Fixed the lack of tool calls in assistant message 2025-03-16 16:26:22 +05:00
a25c9dd4bb
Merge pull request #24 from T-BENZIN/development
~ Fixed the initial assistant response with tool calls not being appended
2025-03-16 12:23:08 +01:00
d078b60f8f ~ Fixed the initial assistant response with tool calls not being appended 2025-03-16 16:19:18 +05:00
2a206f6a23
Merge pull request #23 from T-BENZIN/development
Development
2025-03-16 12:05:29 +01:00
90b1640242 ~ Slightly changed tools_description.py to address change the name of the now function to time_now 2025-03-16 15:23:05 +05:00
661bad8409 + Added OpenAI function calling
+ Added weather tools for ChatGPT
2025-03-16 12:06:12 +05:00
5e7bbafbc9 Reducing short term memory to 50 2025-03-15 19:32:44 +01:00
c289e1d323 Turning to AI in desperation 2025-03-15 19:05:28 +01:00
b8cea3f961 Come on, read config you stupid memory! 2025-03-15 18:32:12 +01:00
728ce2aee4 AAAAAAAAAAA! Documentation why 2025-03-15 18:26:36 +01:00
5645b88677 Stop crying about positional argument! 2025-03-15 18:19:11 +01:00
3bf7d221a0 Screw properties, direct injection baby! 2025-03-15 18:12:57 +01:00
cdb5d20fa9 Moving parent init further down in calling order, this is dumb 2025-03-15 18:09:44 +01:00
f40227d0cd attempting to make config a property 2025-03-15 18:05:21 +01:00
1f59db6f97 Absolutely differently, ahem 2025-03-15 17:58:35 +01:00
e49609e316 Trying to init in a different way 2025-03-15 17:58:25 +01:00
4bd380a8a7 first attempt at separating all memory into its own module separate from core 2025-03-15 17:50:43 +01:00
2f78408c77 Attempting to move out blacklist commands 2025-03-13 19:28:10 +01:00
9f3e9d4ba0 Adding import inheritance 2025-03-13 16:42:27 +01:00
ddf1d883b6 Trying to move permissions into its own file 2025-03-13 16:31:37 +01:00
5c49fc9024 Attempting to import locally 2025-03-11 15:51:13 +01:00
8ea91a6f16 Attempting to refactor list_allowed_roles out to permissions.py 2025-03-11 15:46:55 +01:00
c7dec31d5f
Merge pull request #22 from T-BENZIN/development
~ Changed how messages are split
2025-02-26 18:19:43 +01:00
a744339812 ~ Changed how messages are split 2025-02-26 20:14:38 +05:00
7663550108 Help me, ChatGPT, you are my only hope 2025-02-26 11:44:56 +01:00
994ff11655 Attempting to simplify 2025-02-26 11:37:50 +01:00
678a7af77f Trying to do quick fix 2025-02-26 11:32:58 +01:00
c38a25f610 copy ffxvhqvic past SPIT ting 2025-02-25 22:12:11 +01:00
c37269e9ea I hate copy pasting 2025-02-25 22:09:39 +01:00
11cd70be93 fixing typo 2025-02-25 22:04:42 +01:00
0c9145b792 NUKE FROM ORBIT! 2025-02-25 21:55:08 +01:00
a3a0aa1b9a I swear this is a bad idea 2025-02-25 21:49:12 +01:00
df8d7c8c32 Trying to fix storage of memory 2025-02-25 21:42:12 +01:00
4dbee1d990 More fix 2025-02-25 21:24:55 +01:00
6329d21a39 feh! 2025-02-25 21:08:24 +01:00
39c39abad7 I'm storing stuff wrong 2025-02-25 20:37:52 +01:00
05e1842000 trying to fix topic extraction 2025-02-24 18:46:19 +01:00
541d42c558 First refactor-move 2025-02-24 18:17:58 +01:00
e8e4b7e471 Added cleanup in allow_role and cleaned output messages 2025-02-24 14:13:09 +01:00
db042ff834 removed duplicated functions, wtf 2025-02-24 11:57:19 +01:00
5f454a0d58 I don't know anymore 2025-02-24 11:54:00 +01:00
2e4970b6dd Adding more debug info 2025-02-24 11:40:19 +01:00
a3525a2d18 wtf 2025-02-24 11:37:28 +01:00
4a21a3c8e0 Trying to fix allowed roles, again 2025-02-24 11:34:08 +01:00
f8f67e42bd Trying to fix allowed role access 2025-02-24 10:55:14 +01:00
5daf40d22b Added access controls 2025-02-24 00:01:14 +01:00
cef4df1d88 dialing dynamic responses back 2025-02-23 22:55:21 +01:00
fd566f2649 attempting to add even better listening 2025-02-23 22:43:59 +01:00
f186276d1d attempting to add better listening 2025-02-23 22:37:36 +01:00
ec3d8a323f Adding more trigger words 2025-02-23 21:36:32 +01:00
131febc63b Added detection of direction invocation 2025-02-23 21:25:57 +01:00
a2646eac14 Trying to fix indentation 2025-02-23 21:09:19 +01:00
7f6372a09b add less stupid debug 2025-02-23 21:01:09 +01:00
30d048e53f add stupid level debug 2025-02-23 20:59:41 +01:00
316ff36b8f Adding debug 2025-02-23 20:56:33 +01:00
b4e4437171 Debugging listening 2025-02-23 20:34:58 +01:00
a7c0b90036 Attempting to give Reginald ears 2025-02-23 20:13:09 +01:00
8a54890f56 Syntax error? 2025-02-23 12:17:55 +01:00
d699b537e3 Upping memory limit 2025-02-23 12:15:56 +01:00
4337e7be10 Resetting file to before chess attempting 2025-02-22 02:02:26 +01:00
72171e9ed0 trying to convert to dictionary 2025-02-22 01:57:54 +01:00
0ac027bf1c Adding context, because why not 2025-02-22 01:53:33 +01:00
9823284a31 Attempting to add fen memory 2025-02-22 01:47:08 +01:00
f680dcae17 attempting to add chess 2025-02-22 01:44:55 +01:00
e00dacdbd3 Trying to add graceful contradiction handling 2025-02-21 21:26:26 +01:00
e6fa97965c Trying to activate long term memory 2025-02-21 20:55:33 +01:00
8312678355 Attempting to create weighted memory 2025-02-21 20:21:54 +01:00
bf61df30dd Updated summarize memory function 2025-02-21 19:12:22 +01:00
b6e6bd5bd7 Re-adding self 2025-02-21 18:39:22 +01:00
7ea1f2c5e3 Added a hopefully better way of handling Discord constraints 2025-02-21 18:33:45 +01:00
cbcfc22951 Upping token count and handling Discord limitation 2025-02-21 13:28:04 +01:00
a2aab13fb8 Trying to optimize 2025-02-21 02:44:57 +01:00
79d0d92a29 Trying to optimize summary 2025-02-21 02:30:23 +01:00
385b971dc9 Upped the amount of tokens 2025-02-21 02:16:18 +01:00
a253ab1f6a Trying to do this 2025-02-21 02:07:26 +01:00
89edcdace5 Adding summary debug stuff 2025-02-21 01:58:52 +01:00
1b05c8311e Add 10 message min 2025-02-21 01:36:38 +01:00
a96f27e5fa Added more utility 2025-02-21 01:23:29 +01:00
b835e669ec Utility functions for mid-term summaries 2025-02-21 01:17:36 +01:00
aa2b38ad1c Fixing indentation 2025-02-21 01:00:36 +01:00
e80509ba9d Trying to properly detect message limit 2025-02-21 00:57:03 +01:00
799cde4a7a reformatted reginald function 2025-02-21 00:41:25 +01:00
2724f7cee6 Trying to trim memory properly 2025-02-21 00:38:08 +01:00
814102e921 Trying to add memory retention 2025-02-21 00:30:35 +01:00
8c93e45c2f Adding short term status display limit 2025-02-21 00:02:46 +01:00
d970df5a12 Added ability to adjust short-term memory limit 2025-02-21 00:00:42 +01:00
b8790f57b4 Trying to fix memory 2025-02-20 23:47:54 +01:00
23a21e383e Trying to optimize mid-term memory 2025-02-20 23:16:08 +01:00
18c1c7f9e6 Added ability for Reginald and reginald 2025-02-20 22:45:36 +01:00
ea538293ac Adding a bit of spine and self-respect 2025-02-20 22:34:56 +01:00
fe749e9a18 ChatGPT utility functions gooo! 2025-02-20 22:05:51 +01:00
2d70e02a15 Adding honesty 2025-02-20 22:02:07 +01:00
aaad4a6ead Trying to strip out Reginald: deliberately 2025-02-20 21:55:25 +01:00
2c897fbc9f Trying to make him stop saying Reginald: 2025-02-20 21:48:44 +01:00
0019a6c529 attmepting to add memory 2025-02-20 21:34:57 +01:00
4e64b77b91 Trying to parse mentions 2025-02-20 20:27:26 +01:00
dabee89145 Trying to create channel memory again 2025-02-20 20:20:53 +01:00
ba10dc76a2 Updating to chat completion v.0+ 2025-02-20 20:07:27 +01:00
501c2927fa Added missing import 2025-02-20 20:00:01 +01:00
57446da207 Added extra error handling 2025-02-20 19:57:36 +01:00
4ffc52e250 Added function back to setting api key 2025-02-20 19:38:49 +01:00
76df917f76 Fixing import issue 2025-02-20 19:28:45 +01:00
72e9a0135f Adjusting 2025-02-20 19:23:15 +01:00
e9749a680b Rolling the ChatGPT dice again! 2025-02-20 17:00:43 +01:00
b2fd5f4359 Rolling the ChatGPT dice 2025-02-20 16:52:54 +01:00
d20604d00f Am dumb, deleted too much 2025-02-20 16:17:36 +01:00
a1f51f3788 This optimization surely can't go wrong...surely 2025-02-20 16:04:44 +01:00
4639877767 Attempting to fix missing join messages 2025-02-20 15:39:16 +01:00
1c00b81d9a Attempting to switch to the new gpt-4o-mini model 2024-07-19 12:33:45 +02:00
55319ef1fb attempting to fix ctx problem 2024-05-30 21:20:09 +02:00
3161433f06 Attempting to optimize implementation 2024-05-30 21:10:05 +02:00
5273180d49 Attempting to add detailed responses back in 2024-05-30 20:49:55 +02:00
5d07c5848b Attempting to re-introduce memory to Reginald, manually 2024-05-30 20:39:11 +02:00
de74130674 Reverting to original implementation, how awful 2024-05-30 20:17:09 +02:00
73468b13a5 Undoing the weirdness of the system prompt 2024-05-30 20:09:46 +02:00
63fa40589f Re-added the prompt 2024-05-30 19:57:23 +02:00
5c9113a27e Trying to use ChatGPT to fix our memory issue, crossing fingers 2024-05-30 19:50:25 +02:00
4f84c3b89c I guess we are going asynchronous 2024-04-10 16:50:32 +02:00
7e4de04949 I definitely didn't forget an import somewhere else 2024-04-10 16:39:29 +02:00
235d8790b4 No really, fixing my imports 2024-04-10 16:34:50 +02:00
0c8b77d553 Fixed imports 2024-04-10 16:31:19 +02:00
e423665cc2 Prototyping 2024-04-10 16:26:05 +02:00
7d6b9c9403 Trying a new prompt for Reginald 2024-04-10 13:54:59 +02:00
1d04160d0a Attempting to fix application timeout so its pr user 2023-11-22 20:53:09 +01:00