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.
9 months ago
..
answer fix: autocorrect everything in web (#20605) 10 months ago
chat-input-area fix: some dark mode display incorrect (#20788) 10 months ago
citation Chore: frontend infrastructure upgrade (#16420) 1 year ago
loading-anim Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 11 months ago
log Chore: frontend infrastructure upgrade (#16420) 1 year ago
thought Chore/cleanup warnings (#17974) 12 months ago
check-input-forms-hooks.ts Feat/attachments (#9526) 1 year ago
content-switch.tsx feat: edit question in Chat (#17961) 12 months ago
context.tsx Feat/attachments (#9526) 1 year ago
hooks.ts feat: support var in suggested questions (#17340) 9 months ago
index.tsx fix: web error (#21340) 10 months 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) 9 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) 11 months ago
utils.ts fix: with file conversation second chat raise error (#15097) 1 year ago