220 Commits

Author SHA1 Message Date
095bd828cf Added client message builder 2025-08-17 15:20:32 +05:00
0387dafef8 Removed openai test run code 2025-08-15 12:58:37 +05:00
0e2becc212 Commented out non-functional code 2025-08-15 12:37:57 +05:00
73bf08843f Update reginaldCog/messenger_clients/discord_data_models.py 2025-08-15 09:33:05 +02:00
d2edf0e60d Delete reginaldCog/messenger_clients/_common.py 2025-08-15 09:32:25 +02:00
bd4b05d2d4 Delete reginaldCog/llm_clients/discord_client_interfaces.py 2025-08-15 09:32:03 +02:00
ff70196756 File structure refactor 2025-08-15 11:09:40 +05:00
180c167a43 File structure refactor 2025-08-15 11:01:21 +05:00
75af912bf5 File_structure refactor 2025-08-15 10:41:35 +05:00
a64a07511d Commented out send_long_message method and auto PEP-8 reginald.py 2025-07-18 14:31:51 +05:00
9209cc568d Made Prompt dataclass immutable and got rid out of add_message method. openai_client\models.py's test run would remain broken for now 2025-07-18 14:28:23 +05:00
7056315d5f Added llm_interface.py for connecting Discord bot with LLMs (only Open AI at the moment) 2025-07-18 14:26:35 +05:00
b77dc31ea5 Added Response dataclass for better openai's response deserialization. 2025-07-14 20:28:00 +05:00
ad59a695af Experimented with more convenient (although, less explicit) way of passing data into abstract dataclasses. 2025-07-13 19:47:37 +05:00
89b98fc5af Experimented with more convenient (although, less explicit) way of passing data into abstract dataclasses. 2025-07-13 19:45:09 +05:00
97252a8062 Added models.py in openai_client containing abstract dataclasses for use with openai
Moved all dataclasses to .openai_client.models.py
Made prompt into its own dataclass
Removed to_dict methods because dataclasses/asdict seems to be sufficient
2025-07-11 16:59:20 +05:00
0534ec6b15 Added models.py containing abstract dataclasses for Discord 2025-07-10 21:22:52 +05:00
11f39bb673 Added package structure for future use 2025-07-10 20:52:21 +05:00
247e4417f5 First attempt at making openai stuff pretty. As it uses replies instead of completions, update of openai library is required. 2025-07-05 18:16:48 +05:00
bfe22e40ee First attempt at making openai stuff pretty. As it uses replies instead of completions, update of openai library is required. 2025-07-05 18:14:49 +05:00
59902085b3 First attempt at making openai stuff pretty. As it uses replies instead of completions, update of openai library is required. 2025-07-05 17:48:36 +05:00
3d59e45e7e First attempt at making openai stuff pretty. As it uses replies instead of completions, update of openai library is required. 2025-07-05 17:46:13 +05:00
4e22274f9b - Removed unused debug import 2025-06-18 20:10:05 +05:00
a5ed9f9e1c Applied changes made in GitHub 2025-06-17 10:57:19 +05: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
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
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
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
c1cfbfa02d ~ Fixed the lack of tool calls in assistant message 2025-03-16 16:26:22 +05:00
d078b60f8f ~ Fixed the initial assistant response with tool calls not being appended 2025-03-16 16:19:18 +05: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