Commit Graph

1932 Commits (16b7e7a91e7b6c73ddf3e7193cea53f1b45671fa)

Author SHA1 Message Date
James Collins 3b74d2150e
Organize all the llm stuff into a subpackage (#3436) 2023-04-28 12:00:54 -07:00
Media ee4043ae19
Refactor test_chat to use pytest instead of unittest (#3484)
* refactor_for_pytest

* formatting

---------

Co-authored-by: James Collins <collijk@uw.edu>
2023-04-28 11:27:52 -07:00
k-boikov c1f1da27e7
move remove_color_codes to utils and add tests (#3260)
* move remove_color_codes to utils and add tests

* Fix for ai_settings goals loaded as list(dict)

Some ai_settings formats can cause goals to load as list(dict)
not list(str)

Refactor code in utils.py to explicitly convert input type to string in
remove_color_codes() function.

- Updated remove_color_codes function to convert input argument
 to string type explicitly to avoid unexpected type errors.
- Test case added to check conversion of dict to string in
remove_color_codes function.

* Update tests/test_utils.py

Co-authored-by: James Collins <collijk@uw.edu>

* move remove_color_codes fn and tests to proper files

---------

Co-authored-by: Luke Kyohere <lkyohere@mfsafrica.com>
Co-authored-by: James Collins <collijk@uw.edu>
2023-04-28 11:13:30 -07:00
Media aebe891489
Remove unittest in favor of pytest in the test_token_counter module (#3453)
* init remove unittest for pytest

* docstrings

* black

---------

Co-authored-by: James Collins <collijk@uw.edu>
2023-04-28 09:48:30 -07:00
Media cf5fdabdfc
Removing unitest in favor of pytest from test_config.py (#3417)
* removing unitest in favor of pytest

* remove singleton test and unnecessary fixture

---------

Co-authored-by: James Collins <collijk@uw.edu>
2023-04-28 09:32:11 -07:00
rickythefox 20ef130341
Add tests for code/shell execution & improve config fixture (#1268)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-04-28 14:51:29 +02:00
Johnny C 1772a01d04
Fix URL to docs in API throttling message (#3201)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-04-27 23:43:56 +02:00
Eddie Cohen 5ce6da95fc
Make y/n configurable (#3178)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-04-27 21:26:47 +02:00
James Collins 94dc6f19aa
Add a regression test for the embedding (#3422) 2023-04-27 11:48:18 -07:00
Dhruv Awasthi 427b8648ee
Fix README: remove redundant "Disclaimer" (#3391)
Co-authored-by: Richard Beales <rich@richbeales.net>
2023-04-27 19:24:28 +01:00
Iliass 4b54e3c6d8
Update broken link (#3416)
Co-authored-by: Richard Beales <rich@richbeales.net>
2023-04-27 19:18:44 +01:00
Irmius 6b4ad1f933
Fix `browse_website` headless mode for Firefox (#2816)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-04-27 19:32:31 +02:00
Reinier van der Leer 3d89ed1787
Fix imports, type hints and fixtures for goal oriented tests (#3415) 2023-04-27 19:16:56 +02:00
merwanehamadi adbb47fb65
scrape text regression test (#3387)
Co-authored-by: James Collins <collijk@uw.edu>
2023-04-27 09:27:15 -07:00
Montana Flynn 7cd76b8d8e
Add makedirs to file operations (#3289)
* Add makedirs to file operations

* Add new directory tests for file operations

* Fix wrong setUp test error

* Simplify makedirs and use correct nested path

* Fix linter error

---------

Co-authored-by: Nicholas Tindle <nick@ntindle.com>
Co-authored-by: James Collins <collijk@uw.edu>
2023-04-27 09:12:24 -07:00
Reinier van der Leer 9e17a304de
Minor improvements to the docs for voice config and testing (#3407) 2023-04-27 08:58:35 -07:00
Reinier van der Leer 7a161cc0bd
Add .gitattributes (#3402) 2023-04-27 06:28:18 -07:00
BillSchumacher d8c16de123
The unlooping and fixing of file execution. (#3368)
* The unlooping and fixing of file execution.

* lint

* Use static random seed during testing. remove unused import.

* Fix bug

* Actually fix bug.

* lint

* Unloop a bit more an fix json.

* Fix another bug.

* lint.

---------

Co-authored-by: merwanehamadi <merwanehamadi@gmail.com>
2023-04-26 21:07:28 -07:00
chyezh 65b6c2706e
fix connection bug for zilliz uri on milvus (#3278)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
Co-authored-by: merwanehamadi <merwanehamadi@gmail.com>
2023-04-26 18:57:29 -07:00
Robin Richtsfeld 76bd192f82
Set `vcr_config` scope to "session" (#3361)
Co-authored-by: BillSchumacher <34168009+BillSchumacher@users.noreply.github.com>
2023-04-26 20:55:01 -05:00
merwanehamadi 02f546d2bc
Run the integration tests in the CI pipeline BUT without API keys (#3359)
* integration tests in ci pipeline

* Update CONTRIBUTING.md

Co-authored-by: Reinier van der Leer <github@pwuts.nl>

---------

Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-04-26 20:45:03 -05:00
Eddie Cohen 3b56716a68
Hotfix/validate url strips query params (#3370)
* reconstruct url in sanitize

* tests for url validation

---------

Co-authored-by: BillSchumacher <34168009+BillSchumacher@users.noreply.github.com>
2023-04-26 20:20:15 -05:00
merwanehamadi a3195d84d3
remove do nothing (#3369) 2023-04-26 19:55:02 -05:00
Reinier van der Leer bfaf36099e
Fix(workspace) root resolution (#3365) 2023-04-26 16:43:21 -07:00
merwanehamadi 7a006afb17
fix cassettes recording (#3342) 2023-04-26 13:11:08 -07:00
WladBlank cd8fdb31ef
Chat plugin capability (#2929)
Co-authored-by: BillSchumacher <34168009+BillSchumacher@users.noreply.github.com>
2023-04-26 15:08:39 -05:00
karlivory a0cfdb0830
fix set_total_budget docstring (#3288) 2023-04-26 12:18:12 -07:00
James Collins 83f11465f5
Clean up image generation tests (#3338) 2023-04-26 12:07:28 -07:00
Reinier van der Leer 76df14b831
Fix docs (#3336)
* Fix docs

* Add short section about testing to contribution guide

* Add back note for voice configuration

* Remove LICENSE symlink from docs/

* Fix site_url in mkdocs.yml
2023-04-26 19:14:14 +01:00
merwanehamadi 109fa04c7c
test image gen (#3287) 2023-04-26 10:23:05 -07:00
merwanehamadi a6355a6bc8
use pytest-recording with VCR (#3283) 2023-04-26 09:57:05 -07:00
James Collins 0ff471a49a
Have api manager use singleton pattern (#3269)
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
2023-04-26 11:37:49 -05:00
merwanehamadi 4241fbbbf0
mock openai in test image gen (#3285) 2023-04-26 09:11:31 -07:00
✔️ITtechtor 3ae6c1b03f
Update installation.md (#3325) 2023-04-26 08:50:43 -07:00
vlad 1e71f952f9
Codecov - don't fail pipelines for project cov changes (#3327)
Co-authored-by: Nicholas Tindle <nicktindle@outlook.com>
2023-04-26 09:54:22 -05:00
apurvsibal 749b1bbfc0
Fix(docs) requirements link in installation guide (#3264) 2023-04-26 13:59:53 +02:00
Reinier van der Leer 265a23212e
Fix(docs) Contributing, CoC and License links (#3308) 2023-04-26 11:40:37 +01:00
Richard Beales f0f34030a0
Fix docs alignment (#3302) 2023-04-26 02:52:33 -05:00
Robin Richtsfeld d75379358f
Fix `get_ada_embedding` return type (#3263) 2023-04-25 16:52:38 -07:00
Nicholas Tindle 8670b3039e
Fix PR size autolabeler message (#3194) 2023-04-26 00:25:38 +02:00
James Collins eec86a7b82
Load .env in package init (#3251) 2023-04-25 14:53:13 -07:00
Peter Svensson fac8f7da21
adding probably erroneously removed return value from execut_shell, giving 'None' in return always otherise - not ideal (#3212)
Co-authored-by: James Collins <collijk@uw.edu>
2023-04-25 13:32:39 -07:00
James Collins 6fbac455d4
Remove import time loading of config from llm_utils (#3245) 2023-04-25 12:10:12 -07:00
Richard Beales 1806fc683d
Fix readme centering (#3243) 2023-04-25 19:50:22 +01:00
James Collins f962939737
Use explicit API keys when querying openai rather than import time manipulation of the package attributes (#3241) 2023-04-25 11:38:06 -07:00
James Collins 2619740daa
Extract OpenAI API retry handler and unify ADA embeddings calls. (#3191)
* Extract retry logic, unify embedding functions

* Add some docstrings

* Remove embedding creation from API manager

* Add test suite for retry handler

* Make api manager fixture

* Fix typing

* Streamline tests
2023-04-25 11:12:24 -07:00
Reinier van der Leer 940b115f0a
remove plugin notice from CONTRIBUTING.md (#3227) 2023-04-25 10:05:58 -07:00
merwanehamadi 58d84787f3
Test `Agent.create_agent_feedback` (#3209) 2023-04-25 08:41:57 -07:00
Peter Petermann 6fc6ea69d2
this changes it so the file from config is used, rather than a hardcoded name that might not exist (#3189) 2023-04-25 07:56:59 +01:00
Toran Bruce Richards 93bbd13a34
Update README.md 2023-04-25 17:36:41 +12:00