mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-09 23:53:29 +00:00
* FEATURE: display more places where AI is used - Usage was not showing automation or image caption in llm list. - Also: FIX - reasoning models would time out incorrectly after 60 seconds (raised to 10 minutes) * correct enum not to enumerate non configured models * FEATURE: implement chat streamer This implements a basic chat streamer, it provides 2 things: 1. Gives feedback to the user when LLM is generating 2. Streams stuff much more efficiently to client (given it may take 100ms or so per call to update chat)
14 lines
276 B
Ruby
14 lines
276 B
Ruby
# frozen_string_literal: true
|
|
class RemoveOldSettings < ActiveRecord::Migration[7.2]
|
|
def up
|
|
execute <<~SQL
|
|
DELETE FROM site_settings
|
|
WHERE name IN ('ai_bot_enabled_chat_bots')
|
|
SQL
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|