Skip to content

Commit

Permalink
Remove model setting in ClaudeAI
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncButNeverAwaits authored and sunner committed Mar 13, 2024
1 parent aec4abc commit ca9755d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion src/bots/ClaudeAIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class ClaudeAIBot extends Bot {
const url = `https://claude.ai/api/organizations/${store.state.claudeAi.org}/chat_conversations/${context.uuid}/completion`;
const payload = JSON.stringify({
attachments: [],
model: store.state.claudeAi.model,
files: [],
prompt: prompt,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
});
Expand Down
19 changes: 0 additions & 19 deletions src/components/BotSettings/ClaudeAIBotSettings.vue
Original file line number Diff line number Diff line change
@@ -1,38 +1,19 @@
<template>
<login-setting :bot="bot"></login-setting>
<CommonBotSettings
:settings="settings"
:brand-id="brandId"
mutation-type="setClaudeAi"
></CommonBotSettings>
</template>

<script>
import Bot from "@/bots/ClaudeAIBot";
import CommonBotSettings from "@/components/BotSettings/CommonBotSettings.vue";
import LoginSetting from "@/components/BotSettings/LoginSetting.vue";
import { mapMutations } from "vuex";
import { Type } from "./settings.const";
const { ipcRenderer } = window.require("electron");
const settings = [
{
type: Type.Combobox,
name: "model",
title: "Model",
items: ["claude-2.0", "claude-2.1", "claude-<edit me>"],
},
];
export default {
components: {
LoginSetting,
CommonBotSettings,
},
data() {
return {
settings: settings,
brandId: Bot._brandId,
bot: Bot.getInstance(),
};
},
Expand Down
1 change: 0 additions & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export default createStore({
},
claudeAi: {
org: "",
model: "claude-2.0",
},
poe: {
formkey: "",
Expand Down

0 comments on commit ca9755d

Please sign in to comment.