Commit Graph

94 Commits

Author SHA1 Message Date
Andres Caicedo
62615cacc9 Adds necessary spaces
Introduces spaces between code blocks.
2023-04-04 11:36:50 +02:00
Andres Caicedo
621f18eba7 Update json_parser.py
Introduces spaces between code blocks.
2023-04-04 11:34:28 +02:00
Andres Caicedo
1d10236a63 Update file_operations.py
Introduces spaces between code blocks.
2023-04-04 11:32:55 +02:00
Andres Caicedo
d450ac3a0b Update execute_code.py
Just import path from OS library.
2023-04-04 11:31:20 +02:00
Andres Caicedo
1632f7ebf6 Update data.py
Just import path from OS library.
2023-04-04 11:30:20 +02:00
Andres Caicedo
8053ecd5c6 Update config.py
Introduce spaces between code blocks.
2023-04-04 11:29:02 +02:00
Andres Caicedo
632d87c195 Update commands.py
Just import datetime from datetime library.
2023-04-04 11:28:15 +02:00
Andres Caicedo
9699a1ca78 Update chat.py
Just import sleep from time library.
2023-04-04 11:03:09 +02:00
Andres Caicedo
500b2b4836 Update chat.py
Adds code separation between code blocks.
2023-04-04 11:02:01 +02:00
Andres Caicedo
238824553a Update chat.py
Standardize importation of libraries to top.
2023-04-04 10:58:38 +02:00
Andres Caicedo
1b7b367ce9 Update call_ai_function.py
Standardize importation of libraries to top.
2023-04-04 10:56:56 +02:00
Andres Caicedo
772d4beb21 Update browse.py
Just import GET from requests library.
2023-04-04 10:54:52 +02:00
Andres Caicedo
39f758ba5c Update browse.py
Add separation between code blocks and standardize dictionary definition.
2023-04-04 10:53:47 +02:00
Andres Caicedo
1b4a5301d0 Update ai_functions.py
Just import dumps from JSON library.
2023-04-04 10:49:28 +02:00
Andres Caicedo
27bf7c47e9 Update ai_functions.py
Unnecessary spaces
2023-04-04 10:48:19 +02:00
Andres Caicedo
cd164648ba Update ai_config.py
Add separation between code blocks.
2023-04-04 10:47:04 +02:00
Andres Caicedo
b6344b98e2 Update main.py
Add separation between code blocks.
2023-04-04 10:46:02 +02:00
Andres Caicedo
e2892a92a1 Merge branch 'master' into dev 2023-04-04 10:37:42 +02:00
Toran Bruce Richards
4839a0d89b Merge pull request #112 from TookTheRedBean/master
fix: OpenAPI key variable name typo
2023-04-04 13:26:10 +12:00
Toran Bruce Richards
f6c201f038 Merge pull request #102 from yousefissa/yi-fix-print-thoughts-failures
fix: UnboundLocalError: local variable 'assistant_thoughts_reasoning' referenced before assignment
2023-04-04 11:38:35 +12:00
TookTheRedBean
7556bac42e Merge branch 'Torantulino:master' into master 2023-04-03 16:38:31 -07:00
Toran Bruce Richards
e612b119d3 Merge pull request #81 from yousefissa/yi-write-to-file
Fix: create file dir if it doesnt exist during write_to_file
2023-04-04 11:27:37 +12:00
Toran Bruce Richards
7e529e19d9 Removes print. 2023-04-04 00:24:22 +01:00
yousefissa
8753eba22c comments 2023-04-03 14:55:30 -07:00
yousefissa
04c43432c2 cleanup method 2023-04-03 14:53:19 -07:00
kminer
79f0882dfc fix: OpenAPI key variable name typo 2023-04-03 15:35:01 -06:00
russellocean
f2ba7f21c5 Added support for Google Custom Search API
This pull request adds functionality to the project to allow for a choice between the original Google search method and the Google Custom Search API. The google_search method uses the original method of scraping the HTML from the search results page, using googlesearch-python, while the google_official_search method uses the Google Custom Search API to retrieve search results.

How to test:

To test the functionality, ensure that you have valid API keys and search engine IDs for both the Google search method and the Google Custom Search API. You can set these values in your environment variables as described in the README.md file.

Additional Notes:

This pull request only adds functionality and makes improvements to existing code. No new features or major changes have been introduced.
2023-04-03 16:44:10 -04:00
yousefissa
8a5c9800e7 fix assistant plan variables being referenced before assignment 2023-04-03 13:00:50 -07:00
yousefissa
9ef4fab084 error handling back 2023-04-03 08:50:07 -07:00
yousefissa
4416aa1aa1 create file dir if it doesnt exist during write_to_file 2023-04-03 08:48:43 -07:00
Andres Caicedo
a573224089 Merge branch 'master' into dev 2023-04-03 16:58:31 +02:00
Toran Bruce Richards
51e293f64c Adds --gpt3only mode! 2023-04-03 15:46:46 +01:00
Andres Caicedo
ee753ed34c Merge branch 'master' into dev 2023-04-03 16:40:25 +02:00
Andres Caicedo
8a29e71465 Merge branch 'master' into dev 2023-04-03 16:37:11 +02:00
0xcha05
c8149b0415 better arg parsing 2023-04-03 19:56:01 +05:30
Veylkh
f72afc7558 dirtyjson -> json
Fixes the missing UserDict (caused by migration from python 3.9 to ^3.10)
2023-04-03 14:28:22 +02:00
Andres Caicedo
765210f0cd Add extra documentation 2023-04-03 14:10:02 +02:00
Andres Caicedo
8e2074f483 Merge branch 'master' into dev 2023-04-03 13:51:36 +02:00
Toran Bruce Richards
3093ec9369 Tweaks prompt for better results on both models! 2023-04-03 11:37:43 +01:00
Toran Bruce Richards
109b9288a7 Removes logging and uses new config token limit. 2023-04-03 11:37:18 +01:00
Toran Bruce Richards
e50e826857 Tweaks welcome back prompt. 2023-04-03 11:35:08 +01:00
Toran Bruce Richards
f426b51038 Changes python version to 3.10 in execute_code. 2023-04-03 11:34:39 +01:00
Toran Bruce Richards
c9be6edf9e Improves parsing of AI JSON output.
This makes gpt3.5 turbo fully possible! 🚀
2023-04-03 11:34:17 +01:00
Toran Bruce Richards
2bdd6b7b83 Adds missing google search import. 2023-04-03 11:33:35 +01:00
Toran Bruce Richards
ba6df3674b Fixes overwrite memory command. 2023-04-03 11:33:18 +01:00
Toran Bruce Richards
6a0a1355f0 Fixes google search command. 2023-04-03 11:33:01 +01:00
Toran Bruce Richards
b1cc474b92 removes unused commands. 2023-04-03 11:32:40 +01:00
Toran Bruce Richards
59d52e9bc7 Sets actual token limits. 2023-04-03 11:30:39 +01:00
Toran Bruce Richards
099a5e1090 Handles incorrect AI formatting in a more forgiving way. 2023-04-03 11:30:06 +01:00
Toran Bruce Richards
41daf07219 Vastly improves context window management.
Now uses tokens and biggest context possible.
2023-04-03 11:28:06 +01:00