forked from phoenix/litellm-mirror
* fix(utils.py): return citations for perplexity streaming Fixes https://github.com/BerriAI/litellm/issues/5535 * fix(anthropic/chat.py): support fallbacks for anthropic streaming (#5542) * fix(anthropic/chat.py): support fallbacks for anthropic streaming Fixes https://github.com/BerriAI/litellm/issues/5512 * fix(anthropic/chat.py): use module level http client if none given (prevents early client closure) * fix: fix linting errors * fix(http_handler.py): fix raise_for_status error handling * test: retry flaky test * fix otel type * fix(bedrock/embed): fix error raising * test(test_openai_batches_and_files.py): skip azure batches test (for now) quota exceeded * fix(test_router.py): skip azure batch route test (for now) - hit batch quota limits --------- Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com> * All `model_group_alias` should show up in `/models`, `/model/info` , `/model_group/info` (#5539) * fix(router.py): support returning model_alias model names in `/v1/models` * fix(proxy_server.py): support returning model alias'es on `/model/info` * feat(router.py): support returning model group alias for `/model_group/info` * fix(proxy_server.py): fix linting errors * fix(proxy_server.py): fix linting errors * build(model_prices_and_context_window.json): add amazon titan text premier pricing information Closes https://github.com/BerriAI/litellm/issues/5560 * feat(litellm_logging.py): log standard logging response object for pass through endpoints. Allows bedrock /invoke agent calls to be correctly logged to langfuse + s3 * fix(success_handler.py): fix linting error * fix(success_handler.py): fix linting errors * fix(team_endpoints.py): Allows admin to update team member budgets --------- Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>
44 lines
No EOL
1.2 KiB
YAML
44 lines
No EOL
1.2 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: mypy
|
|
name: mypy
|
|
entry: python3 -m mypy --ignore-missing-imports
|
|
language: system
|
|
types: [python]
|
|
files: ^litellm/
|
|
- id: isort
|
|
name: isort
|
|
entry: isort
|
|
language: system
|
|
types: [python]
|
|
files: litellm/.*\.py
|
|
exclude: ^litellm/__init__.py$
|
|
- repo: https://github.com/psf/black
|
|
rev: 24.2.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 7.0.0 # The version of flake8 to use
|
|
hooks:
|
|
- id: flake8
|
|
exclude: ^litellm/tests/|^litellm/proxy/tests/
|
|
additional_dependencies: [flake8-print]
|
|
files: litellm/.*\.py
|
|
- repo: https://github.com/python-poetry/poetry
|
|
rev: 1.8.0
|
|
hooks:
|
|
- id: poetry-check
|
|
- repo: local
|
|
hooks:
|
|
- id: check-files-match
|
|
name: Check if files match
|
|
entry: python3 ci_cd/check_files_match.py
|
|
language: system
|
|
# - id: check-file-length
|
|
# name: Check file length
|
|
# entry: python check_file_length.py
|
|
# args: ["10000"] # set your desired maximum number of lines
|
|
# language: python
|
|
# files: litellm/.*\.py
|
|
# exclude: ^litellm/tests/ |