θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/src/components/EditingChatBubble/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from "react";
import { X } from "@phosphor-icons/react";
import { useTranslation } from "react-i18next";

export default function EditingChatBubble({
message,
Expand All @@ -11,11 +12,12 @@ export default function EditingChatBubble({
const [isEditing, setIsEditing] = useState(false);
const [tempMessage, setTempMessage] = useState(message[type]);
const isUser = type === "user";
const { t } = useTranslation();

return (
<div>
<p className={`text-xs text-[#D3D4D4] ${isUser ? "text-right" : ""}`}>
{isUser ? "User" : "AnythingLLM Chat Assistant"}
{isUser ? t("common.user") : t("appearance.message.assistant")}
</p>
<div
className={`relative flex w-full mt-2 items-start ${
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { useTranslation } from "react-i18next";

export default function NativeEmbeddingOptions() {
const { t } = useTranslation();
return (
<div className="w-full h-10 items-center flex">
<p className="text-sm font-base text-white text-opacity-60">
There is no set up required when using AnythingLLM's native embedding
engine.
{t("embedding.provider.description")}
</p>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
import { Gauge } from "@phosphor-icons/react";
import { useTranslation } from "react-i18next";

export default function NativeTranscriptionOptions() {
const { t } = useTranslation();
return (
<div className="w-full flex flex-col gap-y-4">
<div className="flex flex-col md:flex-row md:items-center gap-x-2 text-white mb-4 bg-blue-800/30 w-fit rounded-lg px-4 py-2">
<div className="gap-x-2 flex items-center">
<Gauge size={25} />
<p className="text-sm">
Using the local whisper model on machines with limited RAM or CPU
can stall AnythingLLM when processing media files.
{t("transcription.warn-start")}
<br />
We recommend at least 2GB of RAM and upload files &lt;10Mb.
{t("transcription.warn-recommend")}
<br />
<br />
<i>
The built-in model will automatically download on the first use.
{t("transcription.warn-end")}
</i>
</p>
</div>
</div>
<div className="w-full flex items-center gap-4">
<div className="flex flex-col w-60">
<label className="text-white text-sm font-semibold block mb-4">
Model Selection
{t("common.selection")}
</label>
<select
disabled={true}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { useTranslation } from "react-i18next";
export default function LanceDBOptions() {
const { t } = useTranslation();
return (
<div className="w-full h-10 items-center flex">
<p className="text-sm font-base text-white text-opacity-60">
There is no configuration needed for LanceDB.
{t("vector.provider.description")}
</p>
</div>
);
Expand Down
Loading