fix: Set api keys to not required for Agent component to properly expose errors to the playground (#8694)
set api keys to not required Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
parent
a40e87f3e0
commit
fe4fa8e08b
1 changed files with 2 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ def process_inputs(component_data: Input):
|
||||||
component_data.value = ""
|
component_data.value = ""
|
||||||
component_data.load_from_db = False
|
component_data.load_from_db = False
|
||||||
component_data.real_time_refresh = True
|
component_data.real_time_refresh = True
|
||||||
|
if component_data.name == "api_key":
|
||||||
|
component_data.required = False
|
||||||
elif component_data.name == "tool_model_enabled":
|
elif component_data.name == "tool_model_enabled":
|
||||||
component_data.advanced = True
|
component_data.advanced = True
|
||||||
component_data.value = True
|
component_data.value = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue