mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-02 09:06:03 +00:00
Python Bindings: Improved unit tests, documentation and unification of API (#1090)
* Makefiles, black, isort * Black and isort * unit tests and generation method * chat context provider * context does not reset * Current state * Fixup * Python bindings with unit tests * GPT4All Python Bindings: chat contexts, tests * New python bindings and backend fixes * Black and Isort * Documentation error * preserved n_predict for backwords compat with langchain --------- Co-authored-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
@@ -13,4 +13,13 @@ wheel:
|
||||
|
||||
clean:
|
||||
rm -rf {.pytest_cache,env,gpt4all.egg-info}
|
||||
find . | grep -E "(__pycache__|\.pyc|\.pyo$\)" | xargs rm -rf
|
||||
find . | grep -E "(__pycache__|\.pyc|\.pyo$\)" | xargs rm -rf
|
||||
|
||||
black:
|
||||
source env/bin/activate; black -l 120 -S --target-version py36 gpt4all
|
||||
|
||||
isort:
|
||||
source env/bin/activate; isort --ignore-whitespace --atomic -w 120 gpt4all
|
||||
|
||||
test:
|
||||
source env/bin/activate; pytest -s gpt4all/tests
|
Reference in New Issue
Block a user