refactor: Update ChatOutput inputs to use specific input classes

This commit is contained in:
Rodrigo 2024-06-12 17:50:17 -03:00
commit 1ee717ed4e
2 changed files with 5 additions and 4 deletions

View file

@ -26,7 +26,7 @@ class ChatOutput(ChatComponent):
advanced=True,
info="Type of sender.",
),
StrInput(name="sender_name", display_name="Sender Name", info="Name of the sender.", value="AI"),
StrInput(name="sender_name", display_name="Sender Name", info="Name of the sender.", value="AI", advanced=True),
StrInput(name="session_id", display_name="Session ID", info="Session ID for the message.", advanced=True),
BoolInput(
name="record_template",

View file

@ -242,7 +242,7 @@ export const gradients = [
export const nodeColors: { [char: string]: string } = {
inputs: "#10B981",
outputs: "#AA2411",
data: "#4367BF",
data: "#198BF6",
prompts: "#4367BF",
models: "#6344BE",
model_specs: "#6344BE",
@ -267,13 +267,14 @@ export const nodeColors: { [char: string]: string } = {
experimental: "#E6277A",
langchain_utilities: "#31A3CC",
output_parsers: "#E6A627",
str: "#31a3cc",
Text: "#31a3cc",
str: "#4367BF",
Text: "#4367BF",
retrievers: "#e6b25a",
unknown: "#9CA3AF",
custom_components: "#ab11ab",
Records: "#31a3cc",
Record: "#31a3cc",
Message: "#4367BF",
};
export const nodeNames: { [char: string]: string } = {