kennethreitz
451ab798a4
refactor: Update Gemini provider to handle conversation-based completions and add structured response
v0.1.5
2024-10-31 13:16:19 -04:00
kennethreitz
3505c8758d
docs: Remove Google Gemini provider from README
2024-10-31 13:10:17 -04:00
kennethreitz
308886e608
refactor: update Gemini provider to handle conversation-based completions and remove unused variable
2024-10-31 13:10:03 -04:00
kennethreitz
9c18d726d5
refactor: update Gemini provider to handle conversation-based completions
...
This commit updates the Gemini provider in the `simplemind` module to handle conversation-based completions. Previously, the provider raised a `NotImplementedError` when attempting to send a conversation. Now, the provider properly converts the messages to Gemini's format and sends them to establish context. It also sends the final message and retrieves the response. The response is then used to create a properly formatted `Message` instance.
Refactor the `send_conversation` method in the `Gemini` class to handle conversation-based completions.
Fixes #<issue_number>
2024-10-31 13:08:20 -04:00
kennethreitz
8f43b660ea
refactor: update return value in Gemini provider
...
The return value in the Gemini provider's `generate_text` method was updated from `response.result` to `response.text`. This change ensures consistency and clarity in the codebase.
2024-10-31 13:04:40 -04:00
kennethreitz
222d3025b1
fix: update Gemini provider to handle unimplemented features and improve error handling
2024-10-31 12:09:23 -04:00
kennethreitz
fb6c4c289b
docs: remove Google Gemini provider from README
2024-10-31 12:09:17 -04:00
kennethreitz
c28e2a3839
refactor: update import paths for find_provider and Message
2024-10-31 11:58:05 -04:00
kennethreitz
2bed7221b3
Merge pull request #22 from Siddhesh-Agarwal/main
...
Added Gemini Provider
2024-10-31 11:55:47 -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
c4674fc98f
recommended changes
2024-10-31 20:39:24 +05:30
Siddhesh Agarwal
25806221eb
removed test file
2024-10-31 19:40:56 +05:30
Siddhesh Agarwal
5505a3e18d
improved type hinting
2024-10-31 18:42:54 +05:30
Siddhesh Agarwal
48291c37c5
added dependency + requires python is now 3.10
2024-10-31 18:13:10 +05:30
Siddhesh Agarwal
4b2b094ea6
moved to cached_property from property
2024-10-31 17:08:14 +05:30
Siddhesh Agarwal
33e4046ac3
ran isort on all files
2024-10-31 16:58:47 +05:30
Siddhesh Agarwal
7fe8e91111
Update README.md
2024-10-31 14:24:41 +05:30
Siddhesh Agarwal
42fc0e6bc5
coderabbit suggestions fix
2024-10-31 12:58:00 +05:30
Siddhesh Agarwal
ec4f6f9c06
updated env template
2024-10-31 12:21:21 +05:30
Siddhesh Agarwal
499d3b3e14
Added Gemini API Key to settings + imported Gemini Provider
2024-10-31 12:18:51 +05:30
Siddhesh Agarwal
dd2f5a46d2
added support for gemini
2024-10-31 11:56:21 +05:30
Siddhesh Agarwal
bd0c739c9a
improved type hinting
2024-10-31 11:42:38 +05:30
kennethreitz
473a054afa
Update README.md
2024-10-30 20:25:39 -04:00
kennethreitz
55c28a2356
Delete t.py
2024-10-30 19:39:24 -04:00
kennethreitz
9bd1653b5e
Update README.md
2024-10-30 19:35:48 -04:00
kennethreitz
59401c4be4
Update README.md
2024-10-30 19:33:22 -04:00
kennethreitz
20ad9437e5
Update README.md
2024-10-30 19:32:19 -04:00
kennethreitz
9db95cc87b
Update README.md
2024-10-30 19:31:50 -04:00
kennethreitz
d711afec68
Update README.md
2024-10-30 19:30:19 -04:00
kennethreitz
9d7fd4cce5
Update README.md
2024-10-30 19:29:36 -04:00
kennethreitz
4aa470bb20
Update README.md
2024-10-30 19:25:28 -04:00
kennethreitz
88e118cb53
Update README.md
2024-10-30 19:25:00 -04:00
kennethreitz
73316c32a3
Update README.md
2024-10-30 19:24:45 -04:00
kennethreitz
e1331822aa
Update README.md
2024-10-30 19:24:35 -04:00
kennethreitz
baee6e9959
Update README.md
2024-10-30 19:22:27 -04:00
kennethreitz
8096609c2e
Update README.md
2024-10-30 19:22:03 -04:00
kennethreitz
4225f61df3
Update README.md
2024-10-30 19:21:40 -04:00
kennethreitz
034e967ecb
Update README.md
2024-10-30 19:20:56 -04:00
kennethreitz
f9c4cce9a4
logo
2024-10-30 19:19:19 -04:00
kennethreitz
78f6649969
Update README.md
2024-10-30 19:17:44 -04:00
kennethreitz
4f1e52b1f8
Update CHANGELOG to clarify purpose of Session class as managing repeatability
2024-10-30 19:14:19 -04:00
kennethreitz
74c09d5c87
Refactor create_conversation and generate_data functions to improve type hints and maintain consistency in return types
2024-10-30 19:07:04 -04:00
kennethreitz
1f66bac645
**kwargs consistiency
2024-10-30 18:46:33 -04:00
kennethreitz
f828f9991b
Refactor create_conversation function to accept additional keyword arguments for flexibility
2024-10-30 18:43:29 -04:00
kennethreitz
f4de0049f9
Update copyright format and bump version to 0.1.4 in documentation configuration
v0.1.4
2024-10-30 18:33:36 -04:00
kennethreitz
524869668d
Bump version to 0.1.4 and update CHANGELOG to introduce Session class for managing multiple conversations
2024-10-30 18:33:30 -04:00
kennethreitz
a589850288
Clarify usage of Session class in README by specifying its role in setting default parameters for API calls
2024-10-30 18:29:42 -04:00
kennethreitz
4f38b44145
Simplify Session class usage example in README for clarity
2024-10-30 18:29:18 -04:00
kennethreitz
4babdcebd9
Add usage examples for Session class in README to demonstrate reduced repetition
2024-10-30 18:28:25 -04:00