🐛 fix(main.py): fix formatting of multiline string in my_user_python_function value
🔀 chore(main.py): add trailing commas to dictionary entries for improved readability
The multiline string in the value of the `my_user_python_function` key was not properly formatted. The double quotes were changed to triple quotes to match the Python docstring convention. Trailing commas were added to the dictionary entries for improved readability and maintainability.
This commit is contained in:
parent
3c7ecd15f7
commit
9e1bb15003
1 changed files with 23 additions and 23 deletions
|
|
@ -16,12 +16,12 @@ template_node = {
|
|||
"placeholder": "",
|
||||
"show": True,
|
||||
"multiline": True,
|
||||
"value": "\ndef my_user_python_function(text: str) -> str:\n \"\"\"This is a default python function that returns the input text\"\"\"\n return text.upper()\n",
|
||||
"value": '\ndef my_user_python_function(text: str) -> str:\n """This is a default python function that returns the input text"""\n return text.upper()\n',
|
||||
"password": False,
|
||||
"name": "code",
|
||||
"advanced": False,
|
||||
"type": "code",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"lc_kwargs": {
|
||||
"required": False,
|
||||
|
|
@ -32,7 +32,7 @@ template_node = {
|
|||
"name": "lc_kwargs",
|
||||
"advanced": True,
|
||||
"type": "code",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"verbose": {
|
||||
"required": False,
|
||||
|
|
@ -44,7 +44,7 @@ template_node = {
|
|||
"name": "verbose",
|
||||
"advanced": False,
|
||||
"type": "bool",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"callbacks": {
|
||||
"required": False,
|
||||
|
|
@ -55,7 +55,7 @@ template_node = {
|
|||
"name": "callbacks",
|
||||
"advanced": False,
|
||||
"type": "langchain.callbacks.base.BaseCallbackHandler",
|
||||
"list": True
|
||||
"list": True,
|
||||
},
|
||||
"tags": {
|
||||
"required": False,
|
||||
|
|
@ -66,7 +66,7 @@ template_node = {
|
|||
"name": "tags",
|
||||
"advanced": False,
|
||||
"type": "str",
|
||||
"list": True
|
||||
"list": True,
|
||||
},
|
||||
"client": {
|
||||
"required": False,
|
||||
|
|
@ -77,7 +77,7 @@ template_node = {
|
|||
"name": "client",
|
||||
"advanced": False,
|
||||
"type": "Any",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"model_name": {
|
||||
"required": False,
|
||||
|
|
@ -94,12 +94,12 @@ template_node = {
|
|||
"gpt-4-0613",
|
||||
"gpt-4-32k-0613",
|
||||
"gpt-4",
|
||||
"gpt-4-32k"
|
||||
"gpt-4-32k",
|
||||
],
|
||||
"name": "model_name",
|
||||
"advanced": False,
|
||||
"type": "str",
|
||||
"list": True
|
||||
"list": True,
|
||||
},
|
||||
"temperature": {
|
||||
"required": False,
|
||||
|
|
@ -111,7 +111,7 @@ template_node = {
|
|||
"name": "temperature",
|
||||
"advanced": False,
|
||||
"type": "float",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"model_kwargs": {
|
||||
"required": False,
|
||||
|
|
@ -122,7 +122,7 @@ template_node = {
|
|||
"name": "model_kwargs",
|
||||
"advanced": True,
|
||||
"type": "code",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"openai_api_key": {
|
||||
"required": False,
|
||||
|
|
@ -135,7 +135,7 @@ template_node = {
|
|||
"display_name": "OpenAI API Key",
|
||||
"advanced": False,
|
||||
"type": "str",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"openai_api_base": {
|
||||
"required": False,
|
||||
|
|
@ -147,7 +147,7 @@ template_node = {
|
|||
"display_name": "OpenAI API Base",
|
||||
"advanced": False,
|
||||
"type": "str",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"openai_organization": {
|
||||
"required": False,
|
||||
|
|
@ -159,7 +159,7 @@ template_node = {
|
|||
"display_name": "OpenAI Organization",
|
||||
"advanced": False,
|
||||
"type": "str",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"openai_proxy": {
|
||||
"required": False,
|
||||
|
|
@ -171,7 +171,7 @@ template_node = {
|
|||
"display_name": "OpenAI Proxy",
|
||||
"advanced": False,
|
||||
"type": "str",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"request_timeout": {
|
||||
"required": False,
|
||||
|
|
@ -182,7 +182,7 @@ template_node = {
|
|||
"name": "request_timeout",
|
||||
"advanced": False,
|
||||
"type": "float",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"max_retries": {
|
||||
"required": False,
|
||||
|
|
@ -194,7 +194,7 @@ template_node = {
|
|||
"name": "max_retries",
|
||||
"advanced": False,
|
||||
"type": "int",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"streaming": {
|
||||
"required": False,
|
||||
|
|
@ -206,7 +206,7 @@ template_node = {
|
|||
"name": "streaming",
|
||||
"advanced": False,
|
||||
"type": "bool",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"n": {
|
||||
"required": False,
|
||||
|
|
@ -218,7 +218,7 @@ template_node = {
|
|||
"name": "n",
|
||||
"advanced": False,
|
||||
"type": "int",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"max_tokens": {
|
||||
"required": False,
|
||||
|
|
@ -229,17 +229,17 @@ template_node = {
|
|||
"name": "max_tokens",
|
||||
"advanced": False,
|
||||
"type": "int",
|
||||
"list": False
|
||||
"list": False,
|
||||
},
|
||||
"_type": "ChatOpenAI"
|
||||
"_type": "ChatOpenAI",
|
||||
},
|
||||
"base_classes": [
|
||||
"BaseChatModel",
|
||||
"Serializable",
|
||||
"BaseLanguageModel",
|
||||
"ChatOpenAI"
|
||||
"ChatOpenAI",
|
||||
],
|
||||
"description": "Wrapper around OpenAI Chat large language models."
|
||||
"description": "Wrapper around OpenAI Chat large language models.",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue