Commit Graph

3801 Commits (c67a7abbe244cba2f83dbcadfbfee47a897fbecf)

Author SHA1 Message Date
QuantumGhost 56ff5d0e8b feat(api): add a utility function to retrieve naive datetime in UTC timezone 1 year ago
Takuya Ono af83120832
🐛 Fix(Gemini LLM): Support Gemini 0.2.x plugin on agent app (#20794)
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
1 year ago
-LAN- 1e03c97663
fix(llm_node): missing parameters for structure outputs (#20915)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
湛露先生 41e3ecc837
fix remote ip header CF-Connecting-IP (#20846) 1 year ago
-LAN- acb2488fc8
chore(package): Bump version to 1.4.2 (#20897)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
Yeuoly d6d8cca053
refactor: replace compact response generation with length-prefixed response for backwards invocation api (#20903) 1 year ago
Bowen Liang 0f3d4d0b6e
chore: bump mypy to 1.16 (#20608) 1 year ago
Jyong 21a50e22d2
fix auto metadata filter (#20845) 1 year ago
QuantumGhost 102d2f4d58 feat(api): Implement `version` method in `parameter_extractor_node` and raise NotImplementedError in `BaseNode` 1 year ago
QuantumGhost d7a556a36c fix(api): Update variable reset response to use marshal for serialization
The marshal decorator does not work properly when
the api returns a 204 response.
1 year ago
QuantumGhost 1152821d8f fix(api): Invert logic for variable exclusion in `_should_variable_be_saved` 1 year ago
QuantumGhost 44a072ffc7 fix(api): Fix the issue that `node_execution_id` is not saved ...
when batch inserting or updating workflow draft variables.
1 year ago
QuantumGhost c5edfdc972 Merge remote-tracking branch 'upstream/main' into feat/variable-pool-rebased 1 year ago
QuantumGhost c482179850 feat(api): conditionally add chatflow-specific variables to system inputs 1 year ago
QuantumGhost c439e82038
refactor(api): Decouple `ParameterExtractorNode` from `LLMNode` (#20843)
- Extract methods used by `ParameterExtractorNode` from `LLMNode` into a separate file.
- Convert `ParameterExtractorNode` into a subclass of `BaseNode`.
- Refactor code referencing the extracted methods to ensure functionality and clarity.
- Fixes the issue that `ParameterExtractorNode` returns error when executed.
- Fix relevant test cases.

Closes #20840.
1 year ago
QuantumGhost 1ad09f4375 Merge remote-tracking branch 'upstream/main' into feat/variable-pool-rebased 1 year ago
QuantumGhost a97ff587d2
fix(api): Resolve error encountered when executing `QuestionClassifieNode` (#20829)
The `QuestionClassifierNode` class extends `LLMNode`, meaning that, per the Liskov Substitution Principle, `QuestionClassifierNodeData` **SHOULD** be compatible in contexts where `LLMNodeData` is expected.

However, the absence of the `structured_output_enabled` attribute violates this principle, causing `QuestionClassifierNode` to fail during execution.

This commit implements a quick and temporary workaround. A proper resolution would involve refactoring to decouple `QuestionClassifierNode` from `LLMNode` to address the underlying design issue.

Fixes #20725.
1 year ago
QuantumGhost d1d06ed9fc Merge remote-tracking branch 'upstream/main' into feat/variable-pool-rebased 1 year ago
QuantumGhost 68408805dc refactor(api): extract enclosing_node_id directly from graph definition
Instead of attaching it to `execution_metadata` and
extracting from the result.
1 year ago
QuantumGhost 59c5254fb9 feat(api): Save the output variables for LOOP node. 1 year ago
QuantumGhost 282f44822c feat(api): do not save `finish_reason` from LLM node outputs 1 year ago
QuantumGhost b28be1a1ff feat(api): add support for node variable value resetting 1 year ago
QuantumGhost 91ee015114 fix(api): fix creating draft conversation variable
Creating a draft converstaion variable does not require a
`node_execution_id`.
1 year ago
Xiyuan Chen 0720bc7408
Feat/webapp verified sso main (#20494) 1 year ago
QuantumGhost 11b1077c8a test(api): fix broken tests 1 year ago
yihong 65c7c01d90
fix: clean up two unreachable code (#20773)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 year ago
Bharat Ramanathan e6e76852d5
Add support for W&B dedicated cloud instances in Weave tracing integration (#20765)
Co-authored-by: crazywoola <427733928@qq.com>
1 year ago
QuantumGhost 80569ce29f Merge remote-tracking branch 'upstream/main' into feat/variable-pool-rebased 1 year ago
QuantumGhost 930c4cb609
feat(api): Adjust `WorkflowDraftVariable` and `WorkflowNodeExecutionModel` (#20746)
- Add `node_execution_id` column to `WorkflowDraftVariable`, allowing efficient implementation of 
  the "Reset to last run value" feature.
- Add additional index for `WorkflowNodeExecutionModel` to improve the performance of last run lookup.

Closes #20745.
1 year ago
QuantumGhost 724e6a1d80 WIP: node var reset. 1 year ago
jefferyvvv 37c3283450
fix: opensearch vector search falls back to keyword search (#20723)
Co-authored-by: wenjun.gu <wenjun.gu@envision-energy.com>
1 year ago
Bowen Liang c1a13fa553
chore: replace pseudo-random generators with secrets module (#20616) 1 year ago
jefferyvvv 4271602cfc
fix: opensearch metadata filtering returns empty (#20701)
Co-authored-by: wenjun.gu <wenjun.gu@envision-energy.com>
Co-authored-by: crazywoola <427733928@qq.com>
1 year ago
Bowen Liang 4f14d7c0ca
chore: bump uv to 0.7.x (#20692) 1 year ago
Yeuoly 38554c5f3e
fix(inner_api/plugin/wraps): refresh user model after creation in get user function (#20704) 1 year ago
jefferyvvv 138ad6e8b3
fix: opensearch fulltext search with metadata filtering dsl error (#20702)
Co-authored-by: wenjun.gu <wenjun.gu@envision-energy.com>
1 year ago
湛露先生 f76f70f0b6
Fix builtin_providers for tools. (#20697)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
1 year ago
QuantumGhost d0192a98eb test(api): add tests for file variable serialization logic. 1 year ago
QuantumGhost 8c685a86bd test(api): Fix broken tests 1 year ago
QuantumGhost 7e402abefd fix(api): `set_value` should also update the cache
add relevant tests for `get_value` and `set_value` methods
1 year ago
QuantumGhost cb34008559 test(api): fix tests for v1.VariableAssignerNode 1 year ago
QuantumGhost 46a2476185 refactor(api): Inject conv_var_updater_factory into v1.VariableAssignerNode 1 year ago
HaiyangP 3fb9b41fe5
A more concise and effective extractor for excel and csv files (#20625)
Co-authored-by: haiyangpengai <xxxx>
1 year ago
Eric Guo 822298f69d
Fix 500 error (#20614) 1 year ago
Arcaner ad2f25875e
fix(llm_node): update file variable mapping to use vision configs (#20417) 1 year ago
Abdullah AlOsaimi ad8e79c440
assign dataset indexing_technique to args if not explicitly provided (#20597) 1 year ago
QuantumGhost 83cd796b4d feat(api): regenerate the url signature when serializing File object. 1 year ago
QuantumGhost 222087e3be feat(api): cache the deserialized value for `get_value` 1 year ago
QuantumGhost fd208c4035 docs(api): add note to avoid using `handle_special_values` in new code 1 year ago
QuantumGhost 743b792869 feat(api): reconstruct File object from dictionary when saving outputs.
This ensures that the variables type is correct. It also simplify handling of variable
values when serializing.
1 year ago
QuantumGhost 55eb4765cb refactor(api): Rename `output` parameter of `save` method to `outputs`.
Keep the parameter names consistent with the field names `NodeRunResult`.
1 year ago
QuantumGhost e8de080add fix(api): fix incorrect adjust to Extensible
`__file__` records the path of the `Extensible` class, not the receiver class
of `scan_extensions` method.

This commit fixes this by switching to `inspect.getfile`.
1 year ago
QuantumGhost 312601e964 feat(api): implement flies handling for `DraftWorkflowNodeRunApi`
Add TODOs to existing file parsing logic.
1 year ago
QuantumGhost 2edc837585 fix(api): adjust `UpdatedVariable` handling
It's impossible to use Pydantic to restore subclasses of
`Segment` from serialized dictionary (using discriminated
union does not help, neither.)

So migrate to save `variable_type` and `new_value`
separately, instead of store it altogether as a `Segment`
class.
1 year ago
QuantumGhost 83d6a5e92a fix(api): fix the issue that prefilled conv var not commited 1 year ago
-LAN- 5ccfb1f4ba
refactor: Improve model status handling and structured output (#20586)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
Dongyu Li 92614765ff
Feat/queue monitor (#20647) 1 year ago
QuantumGhost eeab59215a test(api): Add tests for variable codec in WorkflowDraftVariable. 1 year ago
Abdullah AlOsaimi 006496f24e
raise error when process_rule is required but missing (#20599) 1 year ago
kenwoodjw 01d500db14
fix: autocorrect everything in web (#20605)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
1 year ago
Novice 4ac3600f81
fix: update app tag error (#20618) 1 year ago
QuantumGhost 9c0bbb2d2d fix(api): Fix _should_variable_be_visible, removed unused tests 1 year ago
QuantumGhost 9dcf410fd2 chore(api): fix mypy violation for `scoped_session`. 1 year ago
QuantumGhost 2db269da95 chore(api): Rename import for `NodeRunMetadataKey`.
`NodeRunMetadataKey` has been renamed to
`WorkflowNodeExecutionMetadataKey`.
1 year ago
QuantumGhost ffa9bc8998 feat(api): set `last_edited_at` to `None` after resetting 1 year ago
QuantumGhost a002b5f000 fix(api): Fix duplicated resource name issue 1 year ago
QuantumGhost 18d681db52 fix(api): Fix the issue that conversation variable saving not working 1 year ago
-LAN- 275e86a26c
refactor: Removes tenant ID check from rate limit logic (#20585)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
非法操作 ca0b268ae5
fix: variable aggregator with group and file raise exception (#20581) 1 year ago
QuantumGhost ea67a96d81 Merge remote-tracking branch 'upstream/main' into feat/variable-pool-rebased 1 year ago
QuantumGhost 9a26211cbf feat(api): implement conversation variable reset api. 1 year ago
QuantumGhost c604659287 feat(api): Update variable handling for `VariableAssigner` nodes
- Put updated variables data in `process_data`
- Use structured object to describe updated variables.
1 year ago
QuantumGhost a3202356e6 fix(api): correct path retrieval in scan_extensions method
The previous does not work when `cwd` is not `api`, switching to
`__file__` fixes this.
1 year ago
QuantumGhost 03f91daa27 feat(api): implement PydanticModelEncoder for JSON serialization
Use `PydanticModelEncoder` for JSON serialization while persisting
node execution data.
1 year ago
QuantumGhost 77ec5f3f68 chore(api): fix mypy typing issues, remove debugging code 1 year ago
QuantumGhost 9e17eb39e2 chore(api): Fix scoped session typing issue 1 year ago
Bowen Liang 888cd86afd
chore: prepare the plugin daemon base url to yarl URL ahead intstead of in every invocation (#20541) 1 year ago
Anshuman Saini e40e9db39a
fixes #19634 (#20545) 1 year ago
-LAN- 36f1b4b222
fix: Ensure model config integrity in retrieval processes (#20576)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
-LAN- 257bf13fef
refactor: Removes unused LLMMode value_of method (#20575)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
-LAN- 957f5b212e
fix: Upgrade Flask-Cors (#20577)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
-LAN- 72fdafc180
refactor: Replaces direct DB session usage with context managers (#20569)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
zhaobingshuang 3f7aa38d77
fix: #20560 When elasticsearch is used as the vector database, the Retrieval Test fails to filter the data after setting the Score Threshold, and the score of the recalled results is empty (#20561) 1 year ago
Contrail a145c2a8fe
fix: ensure proper conversation role alternation for vLLM (#18837) 1 year ago
QuantumGhost e8ec9112b4 fix(api): Fix the issue that output is not saved ...
when using `Default Value` error handling strategy

refactor draft variable saving logic into a separate method.
1 year ago
不如归去 c29cb503be
Fix #20536: Force header in custom tool be string (#20537)
Co-authored-by: Peter Xin <iami@Artemis.local>
1 year ago
不如归去 8025ad0661
Fixes #20534: Allow $ref in parameter for custom tools (#20535)
Co-authored-by: Peter Xin <iami@Artemis.local>
1 year ago
Cheney Zhang b4b59148dc
check zilliz cloud of full-text search (#20519) 1 year ago
QuantumGhost 72561300ec feat(api): Prefill conversation variables in draft workflow and update related services 1 year ago
QuantumGhost 43cae8fc0b fix(api): update `last_edited_at` when updating a draft variable 1 year ago
QuantumGhost 61840f64b3 feat(api): Add `fallback_variables` support for DraftVarLoader. 1 year ago
QuantumGhost d43ebabbbc fix(api): Fix TypeError while serializing File object 1 year ago
湛露先生 b33f8b47ca
nacos config init , and force add ts parms. (#20526)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
1 year ago
kurokobo c26e1929d6
fix(housekeeping): exclude files that are used as app icons or avatar images from being removed (#20532) 1 year ago
-LAN- 92528360f9
fix: fetch tenant_id in other trace providers besides langfuse (#20495)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
Ganondorf 51f64797cd
Add APIs for Knowledge Base Tag Management and Dataset Binding (#20023)
Co-authored-by: lizb <lizb@sugon.com>
1 year ago
Dongyu Li 1ea4459d9f
update knowledge base api (#20426) 1 year ago
Yasuhiro Ohno 55371e5abf
Improve CONVERSATION_TITLE_PROMPT to correctly handle Japanese and input (#20351) 1 year ago
Jyong fb12a3033d
fix celery job not closed issue (#19268) 1 year ago
-LAN- a6ea15e63c
Refactor/message cycle manage and knowledge retrieval (#20460)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago