You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, haven't tried the package but it seems well thought.
It seems we can change the discriminator_field from action to anything but BaseMessage defines it as action and it check subclasses that it used as it. How does it work?
Hi @furkan-guvenc, previously, I made the BaseMessage’s action field somewhat dynamic when chanx only supported Django, allowing users to configure it via Django settings. However, after the major migration to support FastAPI and other ASGI-based frameworks, the approach was adjusted a bit.
Currently, it’s not supported to use a discriminator_field other than action. I might reintroduce support for a dynamic discriminator_field in the future, but I’ll need to find a solid approach that works well for both Django and FastAPI — so it may take a few days to implement.
Activity
huynguyengl99 commentedon Oct 22, 2025
Hi @furkan-guvenc, previously, I made the
BaseMessage’sactionfield somewhat dynamic whenchanxonly supported Django, allowing users to configure it via Django settings. However, after the major migration to support FastAPI and other ASGI-based frameworks, the approach was adjusted a bit.Currently, it’s not supported to use a
discriminator_fieldother thanaction. I might reintroduce support for a dynamicdiscriminator_fieldin the future, but I’ll need to find a solid approach that works well for both Django and FastAPI — so it may take a few days to implement.