Commit Graph

233 Commits

Author SHA1 Message Date
QuantumGhost bf79e6591d feat(python): Enable pycodestyle (W) warning ruleset with ruff (#69)
Refactor codebase to fix pre-existing style issues flagged by the ruleset.
2025-03-24 19:21:00 +08:00
QuantumGhost 22ae421dd6 feat(python): Integrate flake8-builtins (A) ruleset with ruff (#66)
Introduce the flake8-builtins (A) ruleset to prevent accidental shadowing
of Python's built-in functions.

Address existing issues primarily by adding `# noqa` to suppress warnings where necessary.
2025-03-24 18:58:50 +08:00
QuantumGhost 9e084d7d09 feat(python): upgrade ruff to v0.11.2, integrate flake8-bandit ruleset for security linting (#65)
* chore(python): update .gitignore for Python SDK

Adjust .gitignore for Python SDK based on the templated generated by
gitignore.io, with minor custom modifications.

* chore: add .editorconfig for consistent formatting

Add a .editorconfig file to enforce consistent file encoding,
indentation, and end-of-line characters across the project.

* chore(python): upgrade ruff version to v0.11.2

* feat(python): Integrate flake8-bandit ruleset for security linting

Enable the flake8-bandit (S) ruleset in ruff to enforce security-related
best practices and mitigate potential vulnerabilities in the codebase.

Suppress existing issues in the current code using `noqa` comments, primarily for
instances of `requests` calls without a specified `timeout` parameter.
2025-03-24 18:00:14 +08:00
GumKey a4da30d106 fix:add function to validate only stream mode model credentials (#47)
* fix:add function to validate only stream mode model credentials

* fix:add function to validate only stream mode model credentials

* fix:add function to validate only stream mode model credentials

* update: Stream credentials validation failed

* update: Stream credentials validation failed

---------

Co-authored-by: Xenos <sm2052@admindeMacBook-Pro.local>
2025-03-24 17:38:02 +08:00
kurokobo b0822102ed fix: bypass _code_block_mode_wrapper if response_format is not JSON or XML (#57) 2025-03-24 17:36:18 +08:00
Dongyu Li cff2ee2855 Fix/file upload (#62)
* fix:Change the file upload check parameter type to an optional parameter.

* feat:UploadFileResponse add preview_url

* feat:UploadFileResponse add preview_url
2025-03-24 17:35:09 +08:00
bxfxf 0649853867 fix:Let OAICompatLargeLanguageModel compatible with the ​data: format for streaming response messages (#54) 2025-03-21 21:25:04 +08:00
Novice c80184c5c1 Merge branch 'main' into feat/agent-memory 2025-03-19 09:09:30 +08:00
Novice 7012b6099a feat: add llm blocking invoke (#40)
* feat: add llm blocking invoke

* fix: switch to using generator to handle non-streaming requests

* fix: type issues

---------

Co-authored-by: Yeuoly <45712896+Yeuoly@users.noreply.github.com>
2025-03-18 19:05:42 +08:00
jcvv0n 7b578d3694 Fix the error in running the agent plugin (#45) 2025-03-18 17:45:19 +08:00
-LAN- 967084177f fix: Update prompt message content types to use Literal and add union type for content (#49)
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-03-17 17:28:21 +08:00
Novice 4f5d318030 feat: agent node add memory 2025-03-17 14:51:29 +08:00
-LAN- b7a30ae78a fix: cannot init prompt message (#42)
* chore(*): Add pytest into test group

Signed-off-by: -LAN- <laipz8200@outlook.com>

* fix: Enhance content transformation to support Sequence type and add unit tests

Signed-off-by: -LAN- <laipz8200@outlook.com>

---------

Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-03-14 13:36:48 +08:00
Yeuoly eb19d27501 feat: Add connection lifetime timeout for serverless request reader (#38)
- Implement timeout mechanism for single connection lifetime
- Prevent indefinite blocking on queue retrieval
- Refresh connection timer on each successful response
- Handle queue timeout gracefully
2025-03-12 17:57:15 +08:00
Dongyu Li f885a90d09 fix:Change the file upload check parameter type to an optional parameter. (#37) 2025-03-12 17:35:51 +08:00
非法操作 51341c56a5 migrate the <think> tag (#33) 2025-03-12 13:14:52 +08:00
Yeuoly b936b1be9f fix: flush output when initialize 2025-03-07 16:14:16 +08:00
Yeuoly 7cb4b8a00a chore: Bump version to 0.0.1-beta71 and add server startup logging 2025-03-06 17:53:03 +08:00
Yeuoly 7e29231d24 fix: replace flask.run with gevent.pywsgi.WSGIServer 2025-03-06 17:50:06 +08:00
Yeuoly 9abde7fa6f feat: Update code-based workflow example with serverless configuration and tool enhancements 2025-03-04 15:51:32 +08:00
Yeuoly 0354eda546 feat: Add health check endpoint and token counting optimization 2025-03-04 15:48:14 +08:00
Yeuoly 161045b65f fix: memory leak 2025-03-03 14:15:51 +08:00
Yeuoly dc0538c0a4 feat: Add support for JSON schema response formatting in OpenAI-compatible LLM 2025-02-28 14:08:55 +08:00
Novice b1bd879d7d Revert "Merge pull request #21 from langgenius/feat/add-r1-reasoning"
This reverts commit 9d66497cde, reversing
changes made to 5fbbfe5fe2.
2025-02-10 16:43:45 +08:00
Yeuoly 46c029bf65 refactor: aws_lambda to serverless 2025-02-10 14:58:05 +08:00
Yeuoly 5f008ffb5b fix: memory leak due to session pool 2025-02-08 23:41:35 +08:00
Novice Lee 9272ea5d7a feat: add r1 model thinking tag 2025-02-08 11:31:16 +08:00
Novice Lee afc8397bc3 feat: add metadata to log 2025-02-07 10:53:20 +08:00
Novice 58f01ea117 Merge pull request #19 from langgenius/feat/supoort-workflow-tools
feat: support workflow tools
2025-01-22 13:41:51 +08:00
Novice Lee 9db1efdb92 feat: support workflow tools 2025-01-22 13:41:07 +08:00
Yeuoly 857dfbc065 fix: using logger.error to raise detailed error messages 2025-01-21 16:37:36 +08:00
非法操作 a039617def fix invoke llm raise error (#15) 2025-01-21 15:00:08 +08:00
Yeuoly f69257db40 fix: add AWS_LAMBDA_HOST 2025-01-21 14:32:12 +08:00
非法操作 85f7fa302d label display error when use_template (#14) 2025-01-14 18:01:44 +08:00
Hiroshi Fujita 2ed7788aab fix: UploadFileResponse to support optional type initialization from mime_type (#10)
* fix: UploadFileResponse to support optional type initialization from mime_type

* fix: validate type using model_validator

* refactor: remove unused import of Optional from file.py
2025-01-14 18:00:24 +08:00
非法操作 f9df7e9577 sync MultiModalPromptMessageContent (#13) 2025-01-14 17:58:42 +08:00
非法操作 41b97e6423 fix ParameterType.TEXT is not supported (#11) 2025-01-13 14:21:08 +08:00
Novice Lee fb24978387 feat: add agent node log 2025-01-09 08:51:43 +08:00
Novice 43e58b93e7 Merge pull request #7 from langgenius/feat/agent-node
feat: add agent strategy support
2025-01-08 07:50:49 +08:00
Novice Lee 92558f5c07 feat: add agent strategy support 2025-01-08 07:48:27 +08:00
Yeuoly 91f1f343e0 fix: add modified credentials to returns 2025-01-07 18:44:07 +08:00
Yeuoly 6f4d22e860 fix: add input_type 2025-01-03 18:07:40 +08:00
Yeuoly 92cf93cdae fix some bugs 2025-01-03 17:30:02 +08:00
Yeuoly fa458ab0d9 fix: get attribute dose not exists in BlobMessage 2025-01-03 14:47:49 +08:00
Yeuoly 5b3cca4a48 feat: add gevent patchs to get_num_tokens_by_gpt2 2024-12-31 14:58:44 +08:00
Yeuoly bc4e9a05aa fix: variable message 2024-12-27 22:57:38 +08:00
Yeuoly 3e7565f075 feat: support percision to agent strategy parameter 2024-12-27 18:03:58 +08:00
Yeuoly 82438a99a2 feat: support parameter auto generate 2024-12-26 17:28:42 +08:00
Yeuoly 463f97a2e0 fix: incorrect response from toolLike.invoke 2024-12-25 15:43:12 +08:00
Yeuoly d450c94888 fix: using absolute importing 2024-12-17 18:24:31 +08:00