Skip to content

Commit

Permalink
fix ameba
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Nov 3, 2023
1 parent 3de676c commit 1655df7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/placeos-rest-api/controllers/chat_gpt/chat_manager.cr
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ module PlaceOS::Api
@max_tokens : Int32 = 0
@total_tokens : Int32 = 0

# ameba:disable Metrics/CyclomaticComplexity
private def openai_interaction(client, request, executor, message, chat_id, &) : Nil
request.messages << OpenAI::ChatMessage.new(role: :user, content: message)

Expand Down

0 comments on commit 1655df7

Please sign in to comment.