Commit Graph

319 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 c83c6f41ed feat(python): Enforce FBT003 rule in ruff for boolean arguments (#68)
Configure ruff to require boolean arguments to be passed as keyword arguments in function calls.
This enhances code readability and clarity at call sites.
2025-03-24 19:15:08 +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 4eb0de0857 feat(python): Introduct flake8-debugger (T10) ruleset with ruff (#67)
Prohibit calls to `breakpoint()` in committed code.
2025-03-24 18:54:40 +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
Yeuoly b2ace32a05 bump version to 0.0.1-beta74 2025-03-18 18:49:54 +08:00
jcvv0n 7b578d3694 Fix the error in running the agent plugin (#45) 2025-03-18 17:45:19 +08:00
Yeuoly 43c566799e bump version to 0.0.1-beta74 2025-03-18 17:41:43 +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 c40344f44f bump sdk to beta 73 2025-03-12 20:18:41 +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 0685b4bec5 bump to beta68 2025-02-28 14:09:27 +08:00
Yeuoly dc0538c0a4 feat: Add support for JSON schema response formatting in OpenAI-compatible LLM 2025-02-28 14:08:55 +08:00
Yeuoly 6cf29e1040 bump gevent to 24.11.1 2025-02-18 10:23:49 +08:00
Novice 9832fa7257 bump version to 0.0.1-beta66 2025-02-10 17:43:51 +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 7c90378701 bump version to beta65 2025-02-10 15:09:35 +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 eee96a3b25 bump version to 0.0.1-beta64 2025-02-08 11:34:02 +08:00
Novice Lee 9272ea5d7a feat: add r1 model thinking tag 2025-02-08 11:31:16 +08:00
Novice Lee 5fbbfe5fe2 bump version to 0.0.1-beta63 2025-02-07 10:56:04 +08:00
Novice Lee afc8397bc3 feat: add metadata to log 2025-02-07 10:53:20 +08:00
Novice Lee 54dc283c18 bump version to 0.0.1-beta62 2025-01-22 13:44:06 +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
Yeuoly 40fa53baee bump version to 0.0.1-beta61 2025-01-21 15:07:48 +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