Commit Graph

34 Commits

Author SHA1 Message Date
kennethreitz b6b1a4f9f3 Add streaming support to generate_text method and refactor related functions 2024-11-02 16:32:30 -04:00
Barış Özmen 36d6ca4a11 example of stream text generation on openai added 2024-11-02 22:15:23 +03:00
kennethreitz 92819112bb Refactor medication data example to use Rich formatting for improved readability 2024-11-02 12:27:51 -04:00
kennethreitz 275ab39d67 Add medication data example to the repository 2024-11-02 12:24:41 -04:00
kennethreitz 74db69c6e9 Refactor llm_provider and add AI perspective in bible_verses.py example 2024-11-02 12:09:17 -04:00
kennethreitz 7b633ce880 Refactor imports and update llm_provider in bible_verses.py example 2024-11-02 12:02:06 -04:00
kennethreitz a651afb8a6 Refactor imports in _context.py and add bible_verses.py example 2024-11-02 11:46:51 -04:00
kennethreitz 34e8a9d190 Update sentiment_analysis.py 2024-11-02 11:04:12 -04:00
kennethreitz c496712a9a Merge pull request #32 from lucianosrp/fix-sys-prompt
fix: `prepend_system_message` use system role by default
2024-11-02 10:54:47 -04:00
Luciano Scarpulla 3d8e169a08 make prepend_system_message use system reole by default 2024-11-02 22:46:54 +08:00
kennethreitz b74af7c8d8 Update discussion.py 2024-11-02 10:45:00 -04:00
kennethreitz fa3ee731df Refactor discussion.py to add MultiAIConversation class for orchestrating conversations between multiple AI models 2024-11-02 09:59:02 -04:00
Barış Özmen c6c7f2ac09 add print result as comments 2024-11-01 18:42:54 +03:00
Barış Özmen cc6611647a Recipe example from readme added to examples, with a new pretty string formatting 2024-11-01 18:41:40 +03:00
Barış Özmen 8f9036fa32 fix bug. send_hook changed to pre_send_hook 2024-11-01 18:40:08 +03:00
Siddhesh Agarwal c4674fc98f recommended changes 2024-10-31 20:39:24 +05:30
Siddhesh Agarwal 33e4046ac3 ran isort on all files 2024-10-31 16:58:47 +05:30
Siddhesh Agarwal 42fc0e6bc5 coderabbit suggestions fix 2024-10-31 12:58:00 +05:30
kennethreitz 1405c3bbb0 two llms talking 2024-10-30 10:21:02 -04:00
kennethreitz 4d38ac02cc Refactor conversation plugin hooks and add plugin interface 2024-10-30 09:07:18 -04:00
kennethreitz 5bf4fc81e7 Refactor generate_data.py to use correct conversation setup and formatting 2024-10-29 14:29:50 -04:00
kennethreitz ca0246a3bb proper manners 2024-10-29 12:37:26 -04:00
kennethreitz 30885beda7 Refactor generate_data.py to use correct conversation setup and formatting 2024-10-29 12:36:13 -04:00
kennethreitz 641de59138 Refactor translate_to_french function to use the correct conversation setup 2024-10-29 12:19:29 -04:00
kennethreitz 3c4ed48786 Refactor translate_to_french function to use the correct conversation setup 2024-10-29 12:18:55 -04:00
kennethreitz 7d0febedb2 Add sentiment analysis example for analyzing sentiment of text 2024-10-29 07:18:49 -04:00
kennethreitz c3df982690 Add sentiment_analysis.py example for analyzing sentiment of text 2024-10-29 07:18:49 -04:00
kennethreitz 92d8a38e10 Add translate_text.py example for translating text to French 2024-10-29 07:18:49 -04:00
kennethreitz ce3081a27a Add MathPlugin to examples and update Conversation class in models.py 2024-10-29 07:13:34 -04:00
kennethreitz 58e3c6a3bd Refactor code to add support for generating custom temperature text 2024-10-29 07:11:19 -04:00
kennethreitz 1f1bf7749a Refactor generate_text.py to use the default provider 2024-10-29 06:54:03 -04:00
kennethreitz 12937e26a1 Refactor generate_text.py to use the default provider and model 2024-10-29 06:53:40 -04:00
kennethreitz 03204aa9a2 Add script to generate movie quotes from famous movies 2024-10-29 06:46:55 -04:00
kennethreitz f9b1472cf4 examples dir 2024-10-29 06:37:03 -04:00