Skip to content

Commit

Permalink
fix(chatgpt): provide day of the week details
Browse files Browse the repository at this point in the history
so it can make better informed decisions
  • Loading branch information
stakach committed Oct 31, 2023
1 parent d9dac36 commit f789a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-rest-api/controllers/chat_gpt/chat_manager.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module PlaceOS::Api
private def manage_chat(ws : HTTP::WebSocket, message : String, system_id : String)
if timezone = Model::ControlSystem.find!(system_id).timezone
now = Time.local(timezone)
message = "sent at: #{now}\n#{message}"
message = "sent at: #{now}\nday of week: #{now.day_of_week}\n#{message}"
end

ws_lock.synchronize do
Expand Down

0 comments on commit f789a68

Please sign in to comment.