Skip to content

Commit 48bf369

Browse files
committed
PR comments
1 parent 189dc9f commit 48bf369

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/projects/projectId/attributes/attributeId/LLM/models/PrivatemodeAi.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export const MODEL_MAP_FULL_NAME = {
1111
}
1212
const REVERSE_MAP_FULL_NAME = Object.fromEntries(Object.entries(MODEL_MAP_FULL_NAME).map(([key, value]) => [value, key]));
1313
export const MODEL_OPTIONS = Object.keys(MODEL_MAP_FULL_NAME);
14-
14+
const MODEL_MAP_FULL_NAME_OPTIONS = Object.keys(REVERSE_MAP_FULL_NAME);
1515
export default function PrivatemodeAi(props: LLmPropsPrivatemodeAI) {
1616
useEffect(() => {
17-
if (props.llmConfig.model && !MODEL_OPTIONS.includes(props.llmConfig.model)) {
17+
if (props.llmConfig.model && !MODEL_MAP_FULL_NAME_OPTIONS.includes(props.llmConfig.model)) {
1818
props.setLlmConfig({ ...props.llmConfig, model: MODEL_MAP_FULL_NAME[MODEL_OPTIONS[0]] })
1919
}
2020
}, []);

src/components/projects/projectId/settings/embeddings/AddNewEmbeddingModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ export default function AddNewEmbeddingModal() {
134134
setAcceptButton(acceptButtonCopy);
135135
setTermsAccepted(false);
136136
if (savePlatform == PlatformType.PRIVATEMODE_AI) {
137-
console.log("Private Mode AI platform selected, setting model to default.");
138137
setModel("intfloat/multilingual-e5-large-instruct");
139138
} else setModel(null);
140139
setApiToken('');

0 commit comments

Comments
 (0)