We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfebaf commit 120c1d6Copy full SHA for 120c1d6
lib/active_agent/action_prompt/base.rb
@@ -205,6 +205,10 @@ def embed
205
206
def perform_generation
207
prompt_context.options.merge(options)
208
+ if prompt_context.message.content_type == "application/json" && prompt_context.message.role == :user
209
+ prompt_context.message = prompt_context.messages.last
210
+ prompt_context.actions = []
211
+ end
212
generation_provider.generate(prompt_context) if prompt_context && generation_provider
213
handle_response(generation_provider.response)
214
end
0 commit comments