Skip to content

Commit

Permalink
semantics: use cheaper model for smart summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Nov 17, 2024
1 parent 8f1d76e commit 018ca2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ smartSummary
fullText := self conversation fullTextForSummary.

smartSummaryConversation := SemanticConversation new.
smartSummaryConversation in: [:conversation |
SemanticText registeredConversationModels
detect: [:model | model name = OpenAIConversationModel cheapestName]
ifFound: [:model | conversation model: model]].
smartSummaryConversation config: self class semanticConversationConfig.
self changed: #smartSummaryHeader.
^ smartSummaryConversation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"smartCancelIcon" : "ct 8/21/2023 02:28",
"smartChatIcon" : "ct 8/21/2023 02:28",
"smartRerequestIcon" : "ct 8/21/2023 02:28",
"smartSummary" : "ct 10/18/2023 18:02",
"smartSummary" : "ct 11/9/2024 21:05",
"smartSummaryHeader" : "ct 8/21/2023 02:37",
"smartSummaryText" : "ct 8/21/2023 02:19",
"windowIsClosing" : "ct 6/19/2024 02:21" } }

0 comments on commit 018ca2e

Please sign in to comment.