Luciano
3aacfd51ee
Merge branch 'main' into feat/save-conversation
2024-11-26 16:38:56 +01:00
Luciano Scarpulla
a2991eec0c
add conversation save/load functionality
2024-11-26 23:37:30 +08:00
Luciano Scarpulla
ea997aae7b
add tool decorator and example
2024-11-13 12:24:02 +08:00
kennethreitz
7a84ade5a4
Add MoodDetectorPlugin to examples/mood_detector_plugin.py and update requirements.txt
2024-11-06 08:00:09 -05:00
kennethreitz
48e6ef2a43
Add InspirationPlugin to examples/inspiration_plugin.py and allow extra fields in BasePlugin's Config
2024-11-06 07:54:11 -05:00
kennethreitz
33e53562ae
Refactor conversation creation and message handling
...
This commit refactors the `create_conversation` function in `simplemind/__init__.py` to use a more descriptive variable name (`conv`) for the conversation object. It also updates the `add_plugin` method to use the new variable name (`conv`) instead of `conversation`.
In `simplemind/models.py`, the `prepend_system_message` method now accepts an optional `meta` parameter. The method also adds a system message to the conversation by prepending it to the list of messages.
Additionally, the `add_message` method in `simplemind/models.py` has been modified to include type annotations and a default value for the `role` parameter. The method now requires the `text` parameter to be provided explicitly.
A new test file, `tests/test_conversations.py`, has been added to the repository. This file contains a test case for the `generate_data` function, which tests the functionality of different LLM providers.
Lastly, the test files `tests/test_generate_data.py` and `tests/test_generate_text.py` have been modified to remove the unused `Amazon` provider from the list of test cases.
2024-11-02 11:24:26 -04:00
Luciano Scarpulla
3d8e169a08
make prepend_system_message use system reole by default
2024-11-02 22:46:54 +08:00
Siddhesh Agarwal
d62f297b68
removed unused variable
2024-11-01 15:16:20 +05:30
kennethreitz
c28e2a3839
refactor: update import paths for find_provider and Message
2024-10-31 11:58:05 -04:00
Siddhesh Agarwal
1504edad78
removed ABC as parent class
2024-10-31 20:50:17 +05:30
Siddhesh Agarwal
fd7289c8d3
recommended changes
2024-10-31 20:40:21 +05:30
Siddhesh Agarwal
5505a3e18d
improved type hinting
2024-10-31 18:42:54 +05:30
Siddhesh Agarwal
33e4046ac3
ran isort on all files
2024-10-31 16:58:47 +05:30
Siddhesh Agarwal
bd0c739c9a
improved type hinting
2024-10-31 11:42:38 +05:30
kennethreitz
e9e47e27a1
Refactor BasePlugin class to remove ABC inheritance and abstract method decorators
2024-10-30 18:02:03 -04:00
kennethreitz
4d38ac02cc
Refactor conversation plugin hooks and add plugin interface
2024-10-30 09:07:18 -04:00
kennethreitz
e44201b800
Refactor conversation plugin hooks and add plugin interface
2024-10-30 08:58:56 -04:00
Kurt Heiden
846efb4190
Merge branch 'main' into ollama-update
2024-10-29 08:09:03 -06:00
kennethreitz
ce3081a27a
Add MathPlugin to examples and update Conversation class in models.py
2024-10-29 07:13:34 -04:00
kennethreitz
fb8b109545
improvements
2024-10-29 06:51:25 -04:00
kennethreitz
7ac0f76839
Refactor import paths in models.py and utils.py
...
``
2024-10-29 06:21:14 -04:00
Siddhesh Agarwal
9c1ad7ed45
fixed import paths
2024-10-29 13:52:25 +05:30
Siddhesh Agarwal
906fadc03d
moved BaseProvider to prevent cyclic imports
2024-10-29 12:36:17 +05:30
Siddhesh Agarwal
787212bae0
improved BaseProvider
2024-10-29 11:38:36 +05:30
Kurt Heiden
dcb9c14d30
Update simplemind/models.py
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-10-28 22:05:55 -06:00
Kurt Heiden
b23f732d55
Merge branch 'main' into ollama-update
2024-10-28 21:56:24 -06:00
Kurt Heiden
fb2460f907
prepend system memories for plugin
2024-10-28 21:45:25 -06:00
Siddhesh Agarwal
584ca9a197
Added BaseProvider, BasePlugin class
2024-10-29 08:57:38 +05:30
kennethreitz
20f2bedcc2
Refactor Conversation class to support plugins
2024-10-28 19:35:40 -04:00
kennethreitz
dfc960670b
fuck yes
2024-10-28 18:34:17 -04:00
kennethreitz
578f3fc11e
cleanup
2024-10-28 18:21:25 -04:00
kennethreitz
25b523e372
Refactor code structure and imports in simplemind package
2024-10-28 16:24:21 -04:00
kennethreitz
aaf3f94269
test
2024-10-28 09:00:59 -04:00
kennethreitz
45e0eb5175
chore: Add base classes for chains and agents
2024-10-28 08:41:10 -04:00
kennethreitz
e9354d915c
test
2024-10-28 07:57:03 -04:00
kennethreitz
fe7aebd6b6
test
2024-10-28 06:22:41 -04:00