feat: Add the support for images in Captain (#11850)

This commit is contained in:
Tanmay Deep Sharma
2025-07-11 23:28:46 +07:00
committed by GitHub
parent 802f0694ed
commit 5b9f997fa0
8 changed files with 560 additions and 45 deletions

View File

@@ -25,8 +25,8 @@ class Api::V1::Accounts::Captain::AssistantsController < Api::V1::Accounts::Base
def playground
response = Captain::Llm::AssistantChatService.new(assistant: @assistant).generate_response(
params[:message_content],
message_history
additional_message: params[:message_content],
message_history: message_history
)
render json: response