mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
This PR introduces support for optionally exposing more data during LLM function calls. This will be useful as we expand Copilot’s capabilities. Changes included: - Add support for ArticleLlmFormatter - Add missing specs for ContactLLMFormatter and ArticleLLMFormatter - Add additional spec for ConversationLLMFormatter based on config
8 lines
163 B
Ruby
8 lines
163 B
Ruby
module LlmFormattable
|
|
extend ActiveSupport::Concern
|
|
|
|
def to_llm_text(config = {})
|
|
LlmFormatter::LlmTextFormatterService.new(self).format(config)
|
|
end
|
|
end
|