Commit Graph

31 Commits

Author SHA1 Message Date
Sarah Wooders
841d47c462 Remove usage of agent_config from agent.py 2024-01-09 11:22:39 -08:00
Sarah Wooders
54fa07da7a refactor!: Migrate users + agent information into storage connectors (#785)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-01-08 15:59:49 -08:00
Charles Packer
776a30e7dd feat: pull model list for openai-compatible endpoints (#630)
* allow entering custom model name when using openai/azure

* pull models from endpoint

* added/tested vllm and azure

* no print

* make red

* make the endpoint question give you an opportunity to enter your openai api key again in case you made a mitake / want to swap it out

* add cascading workflow for openai+azure model listings

* patched bug w/ azure listing
2023-12-21 23:27:48 -08:00
Charles Packer
4f23934e04 feat: Add new wrapper defaults (#656) 2023-12-21 17:05:38 +04:00
Charles Packer
a283d97d17 added logging of raw response on debug (#666) 2023-12-21 00:25:45 -08:00
Charles Packer
46f686dfde fix: Patch openai error message + openai quickstart (#665)
* removed risky prints

* cleanup

* fix bug with openai quickstart, add extra visual indicators that quickstart worked

* changed message
2023-12-21 00:17:37 -08:00
Charles Packer
4b8ce55280 Update autogen.md to include Azure config example + patch for pyautogen>=0.2.0 (#555)
* Update autogen.md

* in groupchat example add an azure elif

* fixed missing azure mappings + corrected the gpt-4-turbo one

* Updated MemGPT AutoGen agent to take credentials and store them in the config (allows users to use memgpt+autogen without running memgpt configure), also patched api_base kwarg for autogen >=v0.2

* add note about 0.2 testing

* added overview to autogen integration page

* default examples to openai, sync config header between the two main examples, change speaker mode to round-robin in 2-way chat to supress warning

* sync config header on last example (not used in docs)

* refactor to make sure we use existing config when writing out extra credentials

* fixed bug in local LLM where we need to comment out api_type (for pyautogen>=0.2.0)
2023-12-04 12:49:08 -08:00
Charles Packer
df999de4c1 use a consistent warning prefix across codebase (#569) 2023-12-04 11:38:51 -08:00
Sarah Wooders
2857ae1c81 Remove usage of BACKEND_TYPE (#539) 2023-11-30 14:18:25 -08:00
Sarah Wooders
2d23370930 Removing dead code + legacy commands (#536) 2023-11-30 13:37:11 -08:00
Charles Packer
5e7676e133 Remove openai package and migrate to requests (#534) 2023-11-30 13:00:13 -08:00
Sarah Wooders
b05b09439f Add user field for vLLM endpoint (#531) 2023-11-29 12:30:42 -08:00
Charles Packer
9989fd9a52 Fix #487 (summarize call uses OpenAI even with local LLM config) (#488)
* use new chatcompletion function that takes agent config inside of summarize

* patch issue with model now missing
2023-11-19 14:54:12 -08:00
Sarah Wooders
ec2bda4966 Refactor config + determine LLM via config.model_endpoint_type (#422)
* mark depricated API section

* CLI bug fixes for azure

* check azure before running

* Update README.md

* Update README.md

* bug fix with persona loading

* remove print

* make errors for cli flags more clear

* format

* fix imports

* fix imports

* add prints

* update lock

* update config fields

* cleanup config loading

* commit

* remove asserts

* refactor configure

* put into different functions

* add embedding default

* pass in config

* fixes

* allow overriding openai embedding endpoint

* black

* trying to patch tests (some circular import errors)

* update flags and docs

* patched support for local llms using endpoint and endpoint type passed via configs, not env vars

* missing files

* fix naming

* fix import

* fix two runtime errors

* patch ollama typo, move ollama model question pre-wrapper, modify question phrasing to include link to readthedocs, also have a default ollama model that has a tag included

* disable debug messages

* made error message for failed load more informative

* don't print dynamic linking function warning unless --debug

* updated tests to work with new cli workflow (disabled openai config test for now)

* added skips for tests when vars are missing

* update bad arg

* revise test to soft pass on empty string too

* don't run configure twice

* extend timeout (try to pass against nltk download)

* update defaults

* typo with endpoint type default

* patch runtime errors for when model is None

* catching another case of 'x in model' when model is None (preemptively)

* allow overrides to local llm related config params

* made model wrapper selection from a list vs raw input

* update test for select instead of input

* Fixed bug in endpoint when using local->openai selection, also added validation loop to manual endpoint entry

* updated error messages to be more informative with links to readthedocs

* add back gpt3.5-turbo

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-14 15:58:19 -08:00
Vivian Fang
05aeaf1927 Hotfix openai create all with context_window kwarg (#413) 2023-11-10 10:30:11 -08:00
Vivian Fang
11326ec24e Remove AsyncAgent and async from cli (#400)
* Remove AsyncAgent and async from cli

Refactor agent.py memory.py

Refactor interface.py

Refactor main.py

Refactor openai_tools.py

Refactor cli/cli.py

stray asyncs

save

make legacy embeddings not use async

Refactor presets

Remove deleted function from import

* remove stray prints

* typo

* another stray print

* patch test

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-09 14:51:12 -08:00
tractorjuice
908e6d2dcd Update openai_tools.py to use delay (#159)
* Update openai_tools.py

Updated to use the 'delay'

* also use delay instead of 62 in async completions
2023-11-03 09:46:40 -07:00
Vivian Fang
5a60e92e8d Support for MemGPT + Autogen + Local LLM (#231)
* various fixes to get autogen working again

* MemGPT+Autogen+Local LLM example working

Co-Authored-By: nmx0 <nmx0@users.noreply.github.com>

* propagate model to other memgpt_agent constructor

* fix agent_groupchat

* tested on lm studio

---------

Co-authored-by: nmx0 <nmx0@users.noreply.github.com>
Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-01 00:14:40 -07:00
Charles Packer
819028d136 azure typo patch (#192)
* azure typo patch

* Make azure embeddings var consistent

---------

Co-authored-by: Vivian Fang <hi@vivi.sh>
2023-10-29 21:04:49 -07:00
Vivian Fang
53cacad075 Add synchronous memgpt agent (#156) 2023-10-27 16:48:14 -07:00
Sarah Wooders
5c44790ad0 add black to poetry and reformat 2023-10-26 15:33:50 -07:00
Vivian Fang
5276696d58 cleanup
Co-Authored-By: Rivaaj Jumna <50959956+rivms@users.noreply.github.com>
2023-10-26 14:50:00 -07:00
Vivian Fang
1848d716f0 patch azure support
Co-Authored-By: Rivaaj Jumna <50959956+rivms@users.noreply.github.com>
2023-10-26 14:48:07 -07:00
Charles Packer
f4ae08f6f5 add comment about no inner mono + blackified the code 2023-10-22 23:59:46 -07:00
Charles Packer
8484f0557d basic proof of concept tested on airoboros 70b 2.1 2023-10-22 22:52:24 -07:00
Charles Packer
8d43af5a7a azure support 2023-10-21 14:27:36 -07:00
Vivian Fang
3e43519605 Revert "azure support"
This reverts commit 07d721e9b502091d8e2834dd53523ff5ff639eb0.
2023-10-21 14:21:16 -07:00
Charles Packer
5b99f089ee azure support 2023-10-21 14:16:11 -07:00
Vivian Fang
57b823fb70 create -> acreate 2023-10-20 00:03:23 -07:00
Rudra
5e06b83aa3 fix typo 2023-10-20 11:56:08 +05:30
Charles Packer
257c3998f7 init commit 2023-10-12 18:48:58 -07:00