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:
Cristhian Zanforlin Lousa 2024-11-26 20:32:34 -03:00 committed by GitHub
commit 159f6e5906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -131,6 +131,7 @@ def update_projects_components_with_latest_component_versions(project_data, all_
and attr in node_data["template"].get(field_name)
# Check if it needs to be updated
and field_dict[attr] != node_data["template"][field_name][attr]
and attr != "load_from_db"
):
node_changes_log[node_type].append(
{

View file

@ -1704,7 +1704,7 @@
"input_types": [
"Message"
],
"load_from_db": false,
"load_from_db": true,
"name": "api_key",
"password": true,
"placeholder": "",