mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Fix rubocop linting issues in API chat endpoints
- Fix trailing whitespace - Add missing final newlines - Fix array bracket spacing - Auto-corrected all layout issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
94202b2a6b
commit
404066eaa1
7 changed files with 56 additions and 56 deletions
|
@ -4,4 +4,4 @@ json.id chat.id
|
|||
json.title chat.title
|
||||
json.error chat.error.present? ? chat.error : nil
|
||||
json.created_at chat.created_at.iso8601
|
||||
json.updated_at chat.updated_at.iso8601
|
||||
json.updated_at chat.updated_at.iso8601
|
||||
|
|
|
@ -15,4 +15,4 @@ json.pagination do
|
|||
json.per_page @pagy.vars[:items]
|
||||
json.total_count @pagy.count
|
||||
json.total_pages @pagy.pages
|
||||
end
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ json.messages @messages do |message|
|
|||
json.model message.ai_model if message.type == "AssistantMessage"
|
||||
json.created_at message.created_at.iso8601
|
||||
json.updated_at message.updated_at.iso8601
|
||||
|
||||
|
||||
# Include tool calls for assistant messages
|
||||
if message.type == "AssistantMessage" && message.tool_calls.any?
|
||||
json.tool_calls message.tool_calls do |tool_call|
|
||||
|
@ -30,4 +30,4 @@ if @pagy
|
|||
json.total_count @pagy.count
|
||||
json.total_pages @pagy.pages
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,4 +13,4 @@ json.updated_at @message.updated_at.iso8601
|
|||
if @message.type == "UserMessage"
|
||||
json.ai_response_status "pending"
|
||||
json.ai_response_message "AI response is being generated"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue