("public");
const { mutate: enableSkill } = useEnableSkill();
const filteredSkills = useMemo(
@@ -56,7 +64,8 @@ function SkillSettingsList({ skills }: { skills: Skill[] }) {
[skills, filter],
);
const handleCreateSkill = () => {
- console.log("create skill");
+ onClose?.();
+ router.push("/workspace/chats/new?mode=skill");
};
return (
diff --git a/frontend/src/core/i18n/locales/en-US.ts b/frontend/src/core/i18n/locales/en-US.ts
index 21c8bc6..c3e3238 100644
--- a/frontend/src/core/i18n/locales/en-US.ts
+++ b/frontend/src/core/i18n/locales/en-US.ts
@@ -49,6 +49,8 @@ export const enUS: Translations = {
// Input Box
inputBox: {
placeholder: "How can I assist you today?",
+ createSkillPrompt:
+ "Let's create a skill together using your skill-creator skill. First ask me what the skill should do.",
addAttachments: "Add attachments",
mode: "Mode",
flashMode: "Flash",
diff --git a/frontend/src/core/i18n/locales/types.ts b/frontend/src/core/i18n/locales/types.ts
index dd1860d..f1e9c76 100644
--- a/frontend/src/core/i18n/locales/types.ts
+++ b/frontend/src/core/i18n/locales/types.ts
@@ -46,6 +46,7 @@ export interface Translations {
// Input Box
inputBox: {
placeholder: string;
+ createSkillPrompt: string;
addAttachments: string;
mode: string;
flashMode: string;
diff --git a/frontend/src/core/i18n/locales/zh-CN.ts b/frontend/src/core/i18n/locales/zh-CN.ts
index b416f62..cf1ecfa 100644
--- a/frontend/src/core/i18n/locales/zh-CN.ts
+++ b/frontend/src/core/i18n/locales/zh-CN.ts
@@ -49,6 +49,8 @@ export const zhCN: Translations = {
// Input Box
inputBox: {
placeholder: "今天我能为你做些什么?",
+ createSkillPrompt:
+ "我们一起用 skill-creator 技能来创建一个技能吧。先问问我希望这个技能能做什么。",
addAttachments: "添加附件",
mode: "模式",
flashMode: "闪速",