AlpinDale
fa47f51f85
feat: workflows for formatting/linting ( #35 )
...
* add github workflows for pylint and yapf
* yapf
* docstrings for auth
* fix auth.py
* fix generators.py
* fix gen_logging.py
* fix main.py
* fix model.py
* fix templating.py
* fix utils.py
* update formatting.sh to include subdirs for pylint
* fix model_test.py
* fix wheel_test.py
* rename utils to utils_oai
* fix OAI/utils_oai.py
* fix completion.py
* fix token.py
* fix lora.py
* fix common.py
* add pylintrc and fix model.py
* finish up pylint
* fix attribute error
* main.py formatting
* add formatting batch script
* Main: Remove unnecessary global
Linter suggestion.
Signed-off-by: kingbri <bdashore3@proton.me>
* switch to ruff
* Formatting + Linting: Add ruff.toml
Signed-off-by: kingbri <bdashore3@proton.me>
* Formatting + Linting: Switch scripts to use ruff
Also remove the file and recent file change functions from both
scripts.
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Format and lint
Signed-off-by: kingbri <bdashore3@proton.me>
* Scripts + Workflows: Format
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Remove pylint flags
We use ruff now
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Format
Signed-off-by: kingbri <bdashore3@proton.me>
* Formatting: Line length is 88
Use the same value as Black.
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Format
Update to new line length rules.
Signed-off-by: kingbri <bdashore3@proton.me>
---------
Authored-by: AlpinDale <52078762+AlpinDale@users.noreply.github.com>
Co-authored-by: kingbri <bdashore3@proton.me>
2023-12-22 16:20:35 +00:00
Mehran Ziadloo
ead503c75b
Adding token usage support
2023-11-27 20:05:05 -08:00
kingbri
60eb076b43
Tree: Basic formatting and comments
...
Signed-off-by: kingbri <bdashore3@proton.me>
2023-11-16 11:48:40 -05:00
kingbri
5e8419ec0c
OAI: Add chat completions endpoint
...
Chat completions is the endpoint that will be used by OAI in the
future. Makes sense to support it even though the completions
endpoint will be used more often.
Also unify common parameters between the chat completion and completion
requests since they're very similar.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-11-16 01:06:07 -05:00
kingbri
d0b6b11068
OAI: Make freq and presence pen floats
...
Also rename the completions typing file.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-11-15 00:55:15 -05:00