mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-03 15:59:59 +00:00
This introduces another configuration that allows operators to limit the amount of interactions with forced tool usage. Forced tools are very handy in initial llm interactions, but as conversation progresses they can hinder by slowing down stuff and adding confusion.
30 lines
606 B
Plaintext
30 lines
606 B
Plaintext
import { computed } from "@ember/object";
|
|
import I18n from "discourse-i18n";
|
|
import ComboBox from "select-kit/components/combo-box";
|
|
|
|
export default ComboBox.extend({
|
|
content: computed(function () {
|
|
const content = [
|
|
{
|
|
id: -1,
|
|
name: I18n.t("discourse_ai.ai_persona.tool_strategies.all"),
|
|
},
|
|
];
|
|
|
|
[1, 2, 5].forEach((i) => {
|
|
content.push({
|
|
id: i,
|
|
name: I18n.t("discourse_ai.ai_persona.tool_strategies.replies", {
|
|
count: i,
|
|
}),
|
|
});
|
|
});
|
|
|
|
return content;
|
|
}),
|
|
|
|
selectKitOptions: {
|
|
filterable: false,
|
|
},
|
|
});
|