Module: RubyLLM::TopSecret::AutoFiltering Private
- Defined in:
- lib/ruby_llm/top_secret/acts_as_filtered_chat.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #complete ⇒ Object private
Instance Method Details
#complete ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/ruby_llm/top_secret/acts_as_filtered_chat.rb', line 54 def complete(...) condition = filter_condition should_filter = if condition case condition when Symbol then send(condition) when Proc then instance_exec(&condition) end else true end if should_filter RubyLLM::TopSecret.with_filtering { super } else super end end |