File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,10 @@ def self.generate_with(provider_reference, **agent_options)
106106 global_options = provider_config_load ( provider_reference )
107107 inherited_options = ( self . prompt_options || { } ) . except ( :instructions ) # Don't inherit instructions from parent
108108
109- # Different Service, different APIs
109+ # Different Service, different APIs — discard all inherited options
110+ # to prevent parent provider config (host, api_key, etc.) leaking through
110111 if global_options [ :service ] != inherited_options [ :service ]
111- inherited_options . extract! ( :service , :api_version )
112+ inherited_options = { }
112113 end
113114
114115 self . prompt_options = global_options . merge ( inherited_options ) . merge ( agent_options )
You can’t perform that action at this time.
0 commit comments