You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/app/components/base/chat/chat
QuantumGhost 2c1ab4879f
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)

This PR addresses serialization issues in the VariablePool model by separating the `value_type` tags for `IntegerSegment`/`FloatSegment` and `IntegerVariable`/`FloatVariable`. Previously, both Integer and Float types shared the same `SegmentType.NUMBER` tag, causing conflicts during serialization.

Key changes:
- Introduce distinct `value_type` tags for Integer and Float segments/variables
- Add `VariableUnion` and `SegmentUnion` types for proper type discrimination
- Leverage Pydantic's discriminated union feature for seamless serialization/deserialization
- Enable accurate serialization of data structures containing these types

Closes #22024.
12 months ago
..
answer fix: autocorrect everything in web (#20605) 1 year ago
chat-input-area fix: some dark mode display incorrect (#20788) 1 year ago
citation Chore: frontend infrastructure upgrade (#16420) 1 year ago
loading-anim Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 1 year ago
log Chore: frontend infrastructure upgrade (#16420) 1 year ago
thought Chore/cleanup warnings (#17974) 1 year ago
check-input-forms-hooks.ts Feat/attachments (#9526) 2 years ago
content-switch.tsx feat: edit question in Chat (#17961) 1 year ago
context.tsx Feat/attachments (#9526) 2 years ago
hooks.ts feat: support var in suggested questions (#17340) 12 months ago
index.tsx fix: web error (#21340) 1 year ago
question.stories.tsx Chore: frontend infrastructure upgrade (#16420) 1 year ago
question.tsx refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025) 12 months ago
try-to-ask.tsx Chore: frontend infrastructure upgrade (#16420) 1 year ago
type.ts feat: support chatflow start node custom input field hidden (#19678) 1 year ago
utils.ts fix: with file conversation second chat raise error (#15097) 1 year ago