Commit Graph

265 Commits

Author SHA1 Message Date
Yeuoly 12ad9db9b5 enhancement: remove prompt_messages from LLMResult and LLMResultChunk (#88)
* refactor: remove prompt_messages from LLMResult and LLMResultChunk

* fix: add backward compatibility for deprecated prompt_messages field in LLMResult and LLMResultChunk

* fix: set default value for prompt_messages field to an empty list in LLMResult and LLMResultChunk for backward compatibility

* feat: add test for LLMResult to validate prompt_messages field and ensure backward compatibility

* apply ruff
2025-04-11 15:23:05 +08:00
Novice a90dd6782b fix: ReAct Agent add memory 2025-03-26 16:53:36 +08:00
Novice 72d3e1ad03 Merge branch 'main' into feat/agent-memory 2025-03-26 13:20:06 +08:00
QuantumGhost ef530695c7 feat(python): Enable Ruff ruleset (RUF), disable preview mode (#70)
* feat(python): Enable Ruff ruleset (RUF)

Refactor the codebase to address and resolve pre-existing style
violations flagged by the Ruff ruleset.

* feat(python): disable preview mode in Ruff

Preview rules in Ruff are unstable and subject to frequent changes.
Disabling them helps prevent potential confusion for developers.

* chore(python): disable deprecated UP038 rule in Ruff

The UP038 rule is deprecated and its suggested practice is not recommended.
Disabling this rule helps avoid unnecessary code rewrites.
2025-03-25 23:23:00 +09:00
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 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
Novice 193c061333 feat: add history message feature 2025-03-24 09:20:08 +08:00
Novice 4f5d318030 feat: agent node add memory 2025-03-17 14:51:29 +08:00
Novice Lee afc8397bc3 feat: add metadata to log 2025-02-07 10:53:20 +08:00
Novice Lee 9db1efdb92 feat: support workflow tools 2025-01-22 13:41:07 +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 0774668145 feat: webapp 2025-01-04 00:01:14 +08:00
Yeuoly 82438a99a2 feat: support parameter auto generate 2024-12-26 17:28:42 +08:00
Yeuoly 74c8f073c9 feat: add label to agent log 2024-12-15 18:15:01 +08:00
Yeuoly c93028221c refactor: support agent 2024-12-12 19:15:00 +08:00
Yeuoly a623638d01 refactor: rename agent to agent strategy 2024-12-12 18:26:34 +08:00
Yeuoly 15c14aedf8 feat: agent plugin 2024-12-09 22:01:41 +08:00
Yeuoly 1477f72b70 feat: support mime type and type for File 2024-12-03 15:48:59 +08:00
Yeuoly 435c0da60e refactor: use absolute paths 2024-12-03 15:19:19 +08:00
-LAN- 44a9ec53b6 chore: Use removeprefix
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 22:23:15 +08:00
-LAN- b4b0c29169 refactor: prevent raise-without-from-inside-except
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 22:18:56 +08:00
-LAN- da41fbf0ab refactor: suppressible-exception
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 22:13:06 +08:00
-LAN- 061cf9e456 chore: prevent if-else-block-instead-of-if-exp
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 22:05:48 +08:00
-LAN- 6358a80025 chore: prevent collapsible-if
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 21:59:13 +08:00
-LAN- 75cec127f4 refactor(tts.py): Use context manager instead of __enter__()
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 21:42:14 +08:00
-LAN- 4551f79ca3 chore: Fix lines-too-long
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 21:27:12 +08:00
-LAN- b3e0612e53 chore: Apply format
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 21:18:36 +08:00
-LAN- 37128aeadd chore: Apply unsafe auto-fixes and check manually
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 21:17:21 +08:00
-LAN- 5858fe715e chore: Apply formet and auto fix
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 21:10:36 +08:00
Yeuoly ad6ca50b38 feat: summarize, fix: missing files 2024-12-02 16:00:34 +08:00
Yeuoly 87054e4178 feat: openai compat 2024-11-29 16:46:48 +08:00
Yeuoly 01b46e76ba cleanup 2024-11-29 16:13:23 +08:00
Yeuoly 3811d8d786 refactor: tts 2024-11-29 15:54:56 +08:00
Yeuoly bd08c61a16 cleanup 2024-11-28 18:39:43 +08:00
Yeuoly 4a6dd16441 bump jina's sdk to b31 2024-11-22 20:18:59 +08:00
Yeuoly 771d3c5738 bump sdk version of openai 2024-11-22 19:35:40 +08:00
Yeuoly af63f59827 refactor: text-embedding 2024-11-22 18:15:58 +08:00
Yeuoly 8d07075e9c fix: update jina icons 2024-11-20 18:24:57 +08:00
Yeuoly c1d8441263 fix: function call of openai 2024-11-15 18:23:49 +08:00
Yeuoly 15ccb8376b fix: openai: missing numpy, jina: missing _position.yml 2024-11-15 18:06:41 +08:00
Yeuoly f89e4e4750 bump versions to 0.0.2 2024-11-15 17:49:06 +08:00
Yeuoly d7efb97c79 fix: align 2024-11-15 16:56:19 +08:00
Yeuoly 49038d6f6b fix: openai 2024-11-15 16:43:56 +08:00
Yeuoly 30d96e4010 fix: neko does not work as expected 2024-11-15 16:43:11 +08:00
Yeuoly c49b84824c feat: support upload files 2024-11-14 18:36:03 +08:00
Yeuoly cd0a5f2686 chore: it's gif 2024-11-13 16:12:40 +08:00
Yeuoly e5a08c5195 bump sdk to beta beta 22 2024-11-08 23:10:18 +08:00