Remove insight experimental code
Also, downgrade LLM for commands to mini. It's much cheaper and I only upgraded because of the interpretation complexities that the insight command introduced. We are implementing a much better approach with Ask.
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
class Command::Parser::Context
|
||||
attr_reader :user, :url, :script_name, :source_context
|
||||
attr_reader :user, :url, :script_name
|
||||
|
||||
MAX_CARDS = 75
|
||||
|
||||
# TODO: +source_context+, +originally_viewing_card_contents?+ and +original_cards+ are part
|
||||
# of a workaround for the "get insight" experiment. I'll remove once I remove that.
|
||||
def initialize(user, url:, script_name: "", source_context: nil)
|
||||
def initialize(user, url:, script_name: "")
|
||||
@user = user
|
||||
@url = url
|
||||
@script_name = script_name
|
||||
@source_context = source_context
|
||||
|
||||
extract_url_components
|
||||
end
|
||||
@@ -22,14 +19,6 @@ class Command::Parser::Context
|
||||
viewing_card_perma?
|
||||
end
|
||||
|
||||
def originally_viewing_card_contents?
|
||||
(source_context || self).viewing_card_contents?
|
||||
end
|
||||
|
||||
def original_cards
|
||||
(source_context || self).cards
|
||||
end
|
||||
|
||||
def viewing_list_of_cards?
|
||||
viewing_cards_index? || viewing_search_results?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user