fix: enable database loading for OpenAI API base URL in Instagram Copywriter (#4843)
* 🐛 (Instagram Copywriter.json): fix load_from_db field to be set to true instead of false to correctly load data from the database. * 🐛 (setup.py): Fix condition to update component versions by excluding "load_from_db" attribute 🐛 (Instagram Copywriter.json): Fix incorrect "load_from_db" value for "api_key" and "openai_api_base" properties
This commit is contained in:
parent
5d2de860e5
commit
159f6e5906
2 changed files with 2 additions and 1 deletions
|
|
@ -131,6 +131,7 @@ def update_projects_components_with_latest_component_versions(project_data, all_
|
||||||
and attr in node_data["template"].get(field_name)
|
and attr in node_data["template"].get(field_name)
|
||||||
# Check if it needs to be updated
|
# Check if it needs to be updated
|
||||||
and field_dict[attr] != node_data["template"][field_name][attr]
|
and field_dict[attr] != node_data["template"][field_name][attr]
|
||||||
|
and attr != "load_from_db"
|
||||||
):
|
):
|
||||||
node_changes_log[node_type].append(
|
node_changes_log[node_type].append(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1704,7 +1704,7 @@
|
||||||
"input_types": [
|
"input_types": [
|
||||||
"Message"
|
"Message"
|
||||||
],
|
],
|
||||||
"load_from_db": false,
|
"load_from_db": true,
|
||||||
"name": "api_key",
|
"name": "api_key",
|
||||||
"password": true,
|
"password": true,
|
||||||
"placeholder": "",
|
"placeholder": "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue