-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: fix task nonstopping error if model key is expired #1017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+257
−1
Closed
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
834c024
fix task nonstopping error if model key is expired
da4a0a4
update
dc1974d
update
239b446
update
523b51f
Merge branch 'main' into fix/fix_model_key_ui_nonstopping
bytecii 6ff0fe9
update
a0fcd12
update
e0d034e
update
04514b0
Merge branch 'main' into fix/fix_model_key_ui_nonstopping
bytecii c2dd965
update
b040f51
update
c71aece
update
71cc904
update
38ed502
Merge branch 'main' into fix/fix_model_key_ui_nonstopping
bytecii 773a092
Merge branch 'main' into fix/fix_model_key_ui_nonstopping
bytecii 0ca76d3
update
33fadc8
update
54c7a72
update
ef38bb2
update
746a7e0
update
da3d655
update
2d76b71
update
15eed95
update
bytecii 766c8f5
update
bytecii 5f5d3d0
update
bytecii 2480ea0
Merge branch 'main' into fix/fix_model_key_ui_nonstopping
nitpicker55555 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Test | ||
|
|
||
| 'on': | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| pytest: | ||
| name: Run Python Tests | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Set up Python | ||
| run: uv python install 3.10 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| cd backend | ||
| uv sync | ||
|
|
||
| - name: Run error_handler tests | ||
| run: | | ||
| cd backend | ||
| PYTHONPATH=/home/runner/work/eigent/eigent:$PYTHONPATH uv run pytest tests/app/service/test_error_handler.py -v | ||
|
|
||
| - name: Run chat_service_error_handling tests | ||
| run: | | ||
| cd backend | ||
| PYTHONPATH=/home/runner/work/eigent/eigent:$PYTHONPATH uv run pytest tests/app/service/test_chat_service_error_handling.py -v | ||
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bytecii marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| ci: | ||
| # https://pre-commit.ci/#configuration | ||
| autofix_prs: true | ||
| autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' | ||
| autoupdate_schedule: monthly | ||
|
|
||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v6.0.0 | ||
| hooks: | ||
| - id: no-commit-to-branch | ||
| name: No commits to master | ||
| - id: end-of-file-fixer | ||
| name: End-of-file fixer | ||
| - name: mixed-line-ending | ||
| id: mixed-line-ending | ||
| args: [--fix, lf] | ||
| - id: trailing-whitespace | ||
| name: Remove trailing whitespaces | ||
| - id: check-toml | ||
| name: Check toml | ||
| - id: check-yaml | ||
| name: Check yaml | ||
|
|
||
| - repo: https://github.com/adrienverge/yamllint.git | ||
| rev: v1.37.1 | ||
| hooks: | ||
| - id: yamllint | ||
| name: Lint yaml | ||
| args: [-d, '{extends: default, rules: {line-length: disable, document-start: disable, truthy: {level: error}, braces: {max-spaces-inside: 1}}}'] | ||
|
|
||
| - repo: https://github.com/asottile/pyupgrade | ||
| rev: v3.21.0 | ||
| hooks: | ||
| - id: pyupgrade | ||
| name: Upgrade Python syntax | ||
| args: [--py38-plus] | ||
|
|
||
| - repo: https://github.com/PyCQA/autoflake | ||
| rev: v2.3.1 | ||
| hooks: | ||
| - id: autoflake | ||
| name: Remove unused imports and variables | ||
| args: [ | ||
| --remove-all-unused-imports, | ||
| --remove-unused-variables, | ||
| --remove-duplicate-keys, | ||
| --ignore-init-module-imports, | ||
| --in-place, | ||
| ] | ||
|
|
||
| - repo: https://github.com/google/yapf | ||
| rev: v0.43.0 | ||
| hooks: | ||
| - id: yapf | ||
| name: Format code | ||
| additional_dependencies: [toml] | ||
|
|
||
| - repo: https://github.com/pycqa/isort | ||
| rev: 7.0.0 | ||
| hooks: | ||
| - id: isort | ||
| name: Sort imports | ||
|
|
||
| - repo: https://github.com/PyCQA/flake8 | ||
| rev: 7.3.0 | ||
| hooks: | ||
| - id: flake8 | ||
| name: Check PEP8 | ||
| additional_dependencies: [Flake8-pyproject] | ||
|
|
||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.14.3 | ||
| hooks: | ||
| - id: ruff | ||
| name: Ruff formatting | ||
| args: [--fix, --exit-non-zero-on-fix] | ||
|
|
||
| - repo: https://github.com/executablebooks/mdformat | ||
| rev: 0.7.22 | ||
| hooks: | ||
| - id: mdformat | ||
| name: Format Markdown | ||
| additional_dependencies: | ||
| - mdformat-gfm | ||
| - mdformat_frontmatter | ||
| - mdformat_footnote |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.