Skip to content

[python]: Revisit content_type determination #124

@cpsievert

Description

@cpsievert

Once #62 is done, we should revisit the determination of ClientMessage's content_type.

content_type = "html" if isinstance(content, HTML) else "markdown"

And, in fact, that determination should probably be made by ChatMessage.

Note also that after #119, ChatMessage now essentially checks whether content_type is "html" and, if so, wraps it in a "literal HTML" wrapper. I think we could, instead, set content_type="html" (to avoid going through the markdown parser) and remove the need for the "literal HTML" wrapper?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions