Skip to content

Commit e747e66

Browse files
committed
Change error message to point to correct function
1 parent 415ced0 commit e747e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shiny/ui/_chat_normalize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def normalize_message(message: Any) -> ChatMessage:
277277
return strategy.normalize(message)
278278
raise ValueError(
279279
f"Could not find a normalizer for message of type {type(message)}: {message}. "
280-
"Consider registering a custom normalizer via shiny.ui._chat_types.registry.register()"
280+
"Consider registering a custom normalizer via shiny.ui._chat_normalize.message_normalizer_registry.register()"
281281
)
282282

283283

@@ -288,5 +288,5 @@ def normalize_message_chunk(chunk: Any) -> ChatMessage:
288288
return strategy.normalize_chunk(chunk)
289289
raise ValueError(
290290
f"Could not find a normalizer for message chunk of type {type(chunk)}: {chunk}. "
291-
"Consider registering a custom normalizer via shiny.ui._chat_types.registry.register()"
291+
"Consider registering a custom normalizer via shiny.ui._chat_normalize.message_normalizer_registry.register()"
292292
)

0 commit comments

Comments
 (0)