861 Commits

Author SHA1 Message Date
James Tsang
3eda9ed74d
fix: be compatible with custom model without full response (#222)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-13 19:46:50 +00:00
Sheetali Maity
04319c968a
Added comment about config_list in the README example #216 (#218)
* Update README.md

* Update README.md
2023-10-13 15:49:47 +00:00
Javid Jamae
fbf8faeac1
Update Getting-Started.md (#213)
Fixed minor typo

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-12 16:06:31 +00:00
Yiran Wu
b61aeb6cce
Improving logging in oai.completion to show token_count (#179)
* update

* update doc

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-12 14:31:52 +00:00
afourney
6b14bd6609
Addresses issue #199 (#200)
* Addresses issue #199

* Fixed comment to align with new behavior.

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-12 12:58:36 +00:00
Gaëtan H
09854e4704
Icons not centered in the "autogen_agentchat.png" (#169)
* Delete website/static/img/autogen_agentchat.png

* Add files via upload
2023-10-12 04:52:30 +00:00
Deepanshu
98ca5bcc80
Fix typo in README.md (#193) 2023-10-12 03:47:04 +00:00
gagb
c7dd6ce1f7
Add md for faqs (#194)
* Add md for faq; Update readme

* Update TRANSPARENCY_FAQS.md

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Update TRANSPARENCY_FAQS.md

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Remove trailing space

* Fix trailing space issue

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-12 03:27:55 +00:00
Manuel Saelices
d481aebb9b
Fix edge cases extracting code when the message's content is None (#205) 2023-10-11 17:27:54 +00:00
wayliums
0a1214f875
Make getting started a little easier (#180)
* Update README.md

add codespace quick start

* add codespace

* update path

---------

Co-authored-by: Li Jiang <lijiang1@microsoft.com>
2023-10-11 01:20:04 +00:00
Ikko Eltociear Ashimine
688cf44d0e
Fix typo in agentchat_MathChat.ipynb (#191)
requries -> requires
2023-10-10 17:43:55 +00:00
Li Jiang
fa6e2a52c0
Add support to customized vectordb and embedding functions (#161)
* Add custom embedding function

* Add support to custom vector db

* Improve docstring

* Improve docstring

* Improve docstring

* Add support to customized is_termination_msg fucntion

* Add a test for customize vector db with lancedb

* Fix tests

* Add test for embedding_function

* Update docstring
v0.1.10
2023-10-10 12:53:18 +00:00
Li Jiang
37a07a83c3
Bump version to 0.1.10 (#181) 2023-10-10 05:21:56 +00:00
afourney
afdff3ea14
Warn if oai.Completion is provided with an empty config_list (#178)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
v0.1.9
2023-10-10 00:17:36 +00:00
Chi Wang
72239a6d5d
bump version to 0.1.9 (#177)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-10 00:08:08 +00:00
afourney
9571b7fbe7
Display a warning if use_docker evlauates to True but the python docker package is not available. (#172)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-09 23:27:54 +00:00
afourney
4522900487
Warn if GroupChat is underpopulatd. (#170) 2023-10-09 21:30:20 +00:00
afourney
d8ebf6c8c6
Output a warning if attempting to load the OAI_CONFIG_LIST from a file, but the file is not found. (#174) 2023-10-09 20:15:39 +00:00
Allen Shi
fbe82da208
fix: replace gpt-35-turbo in model name to gpt-3.5-turbo so the name … (#138)
* fix: replace gpt-35-turbo in model name to gpt-3.5-turbo so the name string is in the current chat_model list

* ref: reformatted with black

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-09 10:30:04 +00:00
Vidhula
71ac774cd0
Added twitter link to the contributing section (#162)
Co-authored-by: vidhula17 <catchvidhula@gmail.com>
2023-10-09 10:13:25 +00:00
Li Jiang
95e4c58515
Update termination logic (#155) 2023-10-09 03:50:29 +00:00
Olaoluwa Ademola Salami
46ab5b8c68
add twitter account to start page (#159) 2023-10-09 03:40:12 +00:00
Li Jiang
19f8711c1b
Update num tokens from text (#149)
* Improve num_tokens_from_text

* Format

* Update comments

* Improve docstrings
2023-10-09 02:30:11 +00:00
Olaoluwa Ademola Salami
ae497a0323
add twitter account to website (#150)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-08 23:34:24 +00:00
Qingyun Wu
24adfb0c05 bump version to 0.1.8 v0.1.8 2023-10-08 12:20:55 -04:00
Manish Kumar
50d6d9e0b8
move citation before contributing (#154) 2023-10-08 14:45:54 +00:00
mrauter1
5ff85a3feb
Title: Adjust shell language switch in execute_code for Docker usage (#139)
Description:
This commit modifies the conditional check in execute_code to ensure the switch to PowerShell on Windows only occurs when Docker is not being used. This keeps shell script execution consistent within a Docker container across all platforms, aligning with the function's intended behavior.

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2023-10-07 13:29:52 +00:00
Chi Wang
5510e87c0a
bump version to 0.1.7 (#141) v0.1.7 2023-10-07 09:18:04 +00:00
Sagar Desai
09c9dbe944
typo fixed (#127)
Co-authored-by: Sagar Desai <60027013+sagardesai-ml-mlops@users.noreply.github.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-07 04:35:48 +00:00
Tristan Murphy
f863e97b94
fix doc typo (#123)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-07 04:32:05 +00:00
Hyung-Taik Choi
a087347d19
Fix broken link in README.md (#134)
The link to the documentation's FAQ#code-execution was broken because the 'docs' directory was missing in the original URL.

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-07 04:16:29 +00:00
lars.gersmann
62b6357294
docs: typo fixed (#129) 2023-10-07 04:04:22 +00:00
Chi Wang
20d77a1039
document about docker (#119)
* document about docker

* clarify

* dev container
2023-10-05 19:48:24 +00:00
Aaron
5c2a268d95
openai_utils.py - functionality for instantiating config_list with a .env file (#68)
* FORMATTING

* UPDATE - OAI __init__.py

* ruff

* ADD - notebook covering oai API configuration options and their different purposes

* ADD openai util updates so that the function just assumes the same environment variable name for all models, also added functionality for adding API configurations like api_base etc.

* ADD - updates to config_list_from_dotenv and tests for openai_util testing, update example notebook

* UPDATE - added working config_list_from_dotenv() with passing tests, and updated notebook

* UPDATE - code and tests to potentially get around the window build permission error, used different method of producing temporary files

---------

Co-authored-by: Ward <award40@LAMU0CLP74YXVX6.uhc.com>
2023-10-05 04:45:11 +00:00
Ujjwal gupta
dc70b804ad
Docs: fixed typos and grammar (#94) 2023-10-03 23:50:42 +00:00
Chi Wang
305dffebca
show github stars (#92) 2023-10-03 23:45:55 +00:00
dependabot[bot]
6ef0124251
Bump postcss from 8.4.18 to 8.4.31 in /website (#93)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.18 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.18...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-03 23:43:26 +00:00
Mohamed Attia
a3547f82c4
Replace the use of assert in non-test code (#80)
* Replace `assert`s in the `conversable_agent` module with `if-log-raise`.

* Use a `logger` object in the `code_utils` module.

* Replace use of `assert` with `if-log-raise` in the `code_utils` module.

* Replace use of `assert` in the `math_utils` module with `if-not-raise`.

* Replace `assert` with `if` in the `oai.completion` module.

* Replace `assert` in the `retrieve_utils` module with an if statement.

* Add missing `not`.

* Blacken `completion.py`.

* Test `generate_reply` and `a_generate_reply` raise an assertion error
when there are neither `messages` nor a `sender`.

* Test `execute_code` raises an `AssertionError` when neither code nor
filename is provided.

* Test `split_text_to_chunks` raises when passed an invalid chunk mode.

* * Add `tiktoken` and `chromadb` to test dependencies as they're used in
the `test_retrieve_utils` module.

* Sort the test requirements alphabetically.
2023-10-03 17:52:50 +00:00
Al-Ekram Elahee Hridoy
39c145dd53
Format issue (#69)
* Fixed formating issue in the README

* Fixed the formating issue in the README

* Updated formatting as per review comments

* Refactor README.md to highlight use cases and features

* Updated README as per feedback

* Updated README as per feedback

---------

Co-authored-by: Al-Iqram Elahee <hridoy@Al-Iqrams-MacBook-Pro.local>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
v0.1.6
2023-10-03 02:36:23 +00:00
Shaurya Rohatgi
1131943a5d
spelling error (#84) 2023-10-03 02:32:13 +00:00
Chi Wang
50cb53cfe6
bump version to 0.1.6 (#85) 2023-10-03 02:16:30 +00:00
Xiaoyun Zhang
3b5e627746
enable openai workflow on fork branch (#82)
* update

* update

* Update openai.yml
2023-10-02 19:46:46 +00:00
Yiran Wu
4d85f4db0a
fix append_oai_message (#47)
* fix append_oai_message

* add testcase for groupchat

* add test_oai to openai workflow

* code formate

* update

* formate

* update
2023-10-02 18:52:38 +00:00
Hiftie
0481483faa
Fixed MD Issue (#72) 2023-10-02 13:01:14 +00:00
Xiaoyun Zhang
b642f69005
minor fix (#31)
* minor fix for stablility

* fix format

* fix format

* update run_code logic

* format

* Update conversable_agent.py

* fix format

* Update conversable_agent.py

* add tests

* fix format

* revert changes
2023-10-02 12:15:25 +00:00
Chi Wang
49ad771052
expand faq (#66)
* expand faq

* models

* fix format error
2023-10-02 01:34:59 +00:00
Priyanshu Yashwant Deshmukh
bf65b59b79
Updated readme.md : seprated AutoGen and EcoOptGen also removed bibtex (#43)
* Updated README.md added required changes to previous pull 

new changes :
1. A section containing citation to AutoGen and EcoOptiGen
2. Another section contain citation to MathChat
## Citation  
[AutoGen](https://arxiv.org/abs/2308.08155). 
AND  [EcoOptiGen](https://arxiv.org/abs/2303.04673).
``` 
bibtex
@inproceedings{wu2023autogen,
      title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},
      author={Qingyun Wu and Gagan Bansal and Jieyu Zhang and Yiran Wu and Shaokun Zhang and Erkang Zhu and Beibin Li and Li Jiang and Xiaoyun Zhang and Chi Wang},
      year={2023},
      eprint={2308.08155},
      archivePrefix={arXiv},
      primaryClass={cs.AI}
}

bibtex
@inproceedings{wang2023EcoOptiGen,
    title={Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference},
    author={Chi Wang and Susan Xueqing Liu and Ahmed H. Awadallah},
    year={2023},
    booktitle={AutoML'23},
}
```

 [MathChat](https://arxiv.org/abs/2306.01337). 

```
bibtex
@inproceedings{wu2023empirical,
    title={An Empirical Study on Challenging Math Problem Solving with GPT-4},
    author={Yiran Wu and Feiran Jia and Shaokun Zhang and Hangyu Li and Erkang Zhu and Yue Wang and Yin Tat Lee and Richard Peng and Qingyun Wu and Chi Wang},
    year={2023},
    booktitle={ArXiv preprint arXiv:2306.01337},
}
```

* Seperated AutoGen and EcoOptGen and removed 'bibtex'

## Citation  
[AutoGen](https://arxiv.org/abs/2308.08155). 
``` 
@inproceedings{wu2023autogen,
      title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},
      author={Qingyun Wu and Gagan Bansal and Jieyu Zhang and Yiran Wu and Shaokun Zhang and Erkang Zhu and Beibin Li and Li Jiang and Xiaoyun Zhang and Chi Wang},
      year={2023},
      eprint={2308.08155},
      archivePrefix={arXiv},
      primaryClass={cs.AI}
}
```

[EcoOptiGen](https://arxiv.org/abs/2303.04673).
```
@inproceedings{wang2023EcoOptiGen,
    title={Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference},
    author={Chi Wang and Susan Xueqing Liu and Ahmed H. Awadallah},
    year={2023},
    booktitle={AutoML'23},
}
```
2023-10-01 21:18:55 +00:00
Chi Wang
c39bfcaa6e
typing & docstr update (#59)
* typing & docstr update

* bump version to 0.1.5
v0.1.5
2023-10-01 11:57:21 +00:00
Li Jiang
e4eb7aed97
Bump version to 0.1.5 (#60) 2023-10-01 11:56:49 +00:00
Aaron
4adbffa94b
retrieve_utils.py - Updated.py to have the ability to parse text from PDF Files (#50)
* UPDATE - Updated retrieve_utils.py to have the ability to parse text from pdf files

* UNDO - change to recursive condition

* UPDATE - updated agentchat_RetrieveChat.ipynb to clarify which file types are accepted to be in the docs path

* ADD - missing import

* UPDATE - setup.py to have PyPDF2 in retrievechat

* RE-ADD - urls

* ADD - tests for retrieve utils, and removed deprecated PyPdf2

* Update agentchat_RetrieveChat.ipynb

* Update retrieve_utils.py

Fix format

* Update retrieve_utils.py

Replace print with logger

* UPDATE - added more specific exception to PDF decryption try/catch

* FIX - typo, return statement at wrong indentation in extract_text_from_pdf

---------

Co-authored-by: Ward <award40@LAMU0CLP74YXVX6.uhc.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2023-10-01 10:22:58 +00:00