Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca2415c77d | ||
|
|
322a93b5d9 | ||
|
|
1c8d60e6be | ||
|
|
a84cefbc57 | ||
|
|
a860b06b3b | ||
|
|
d9ef95f2c6 | ||
|
|
3b4a6d6484 | ||
|
|
e97146cb38 | ||
|
|
75c19b915b | ||
|
|
99e1c62c1e | ||
|
|
6b076bd6db | ||
|
|
0130d03bf9 |
@ -3,7 +3,6 @@ NEXT_PUBLIC_AMICA_API_URL=https://store.heyamica.com
|
||||
NEXT_PUBLIC_AMICA_STORAGE_URL=https://vrm.heyamica.com/file/amica-vrm
|
||||
NEXT_PUBLIC_SUPABASE_URL=https://kzfcwefqffysqsjrlyld.supabase.co
|
||||
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imt6ZmN3ZWZxZmZ5c3FzanJseWxkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDEyNzA5NjUsImV4cCI6MjAxNjg0Njk2NX0.z9zm2mbJu6RkdZ6zkCUltThIF43-ava_bLvk9qFQsiA
|
||||
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=9f8cee238fde4f0011880ecef0616c88
|
||||
|
||||
X_API_KEY="X_API_KEY"
|
||||
X_API_SECRET="X_API_SECRET"
|
||||
|
||||
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 Semper AI, pixiv Inc.
|
||||
Copyright (c) 2023 Semper AI, pixiv Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
10422
package-lock.json
generated
10422
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -28,13 +28,11 @@
|
||||
"@mkkellogg/gaussian-splats-3d": "^0.4.5",
|
||||
"@next/third-parties": "^14.2.16",
|
||||
"@pixiv/three-vrm": "^3.1.2",
|
||||
"@rainbow-me/rainbowkit": "^2.2.0",
|
||||
"@ricky0123/vad-react": "^0.0.24",
|
||||
"@sentry/nextjs": "^8.34.0",
|
||||
"@supabase/supabase-js": "^2.45.4",
|
||||
"@tabler/icons-react": "^3.19.0",
|
||||
"@tailwindcss/forms": "^0.5.9",
|
||||
"@tanstack/react-query": "^5.59.16",
|
||||
"@testing-library/jest-dom": "^6.5.0",
|
||||
"@webxr-input-profiles/assets": "^1.0.16",
|
||||
"@webxr-input-profiles/motion-controllers": "^1.0.0",
|
||||
@ -66,8 +64,6 @@
|
||||
"three.quarks": "^0.15.5",
|
||||
"twitter-api-v2": "^1.19.0",
|
||||
"typescript-collections": "^1.3.3",
|
||||
"viem": "^2.21.37",
|
||||
"wagmi": "^2.12.25",
|
||||
"wavefile": "^11.0.0",
|
||||
"webm-duration-fix": "^1.0.4",
|
||||
"window.ai": "^0.2.4",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 405 KiB After Width: | Height: | Size: 423 KiB |
Binary file not shown.
Binary file not shown.
@ -1,6 +1,3 @@
|
||||
import { useAccount } from 'wagmi'
|
||||
import { ConnectButton } from '@rainbow-me/rainbowkit';
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const ArbiusIntroduction = ({ open, close }: {
|
||||
@ -8,10 +5,8 @@ export const ArbiusIntroduction = ({ open, close }: {
|
||||
close: () => void;
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const { address } = useAccount();
|
||||
|
||||
|
||||
if (! open) {
|
||||
if (!open) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -29,23 +24,15 @@ export const ArbiusIntroduction = ({ open, close }: {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="my-8 flex space-x-4">
|
||||
<ConnectButton />
|
||||
</div>
|
||||
<div className="my-8">
|
||||
{address && (
|
||||
<button
|
||||
onClick={() => {
|
||||
close();
|
||||
}}
|
||||
className="ml-3 inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
|
||||
>
|
||||
{t("Continue to Amica")}
|
||||
</button>
|
||||
)}
|
||||
{(!address) && (
|
||||
<p>{t("Please connect your wallet to continue.")}</p>
|
||||
)}
|
||||
<button
|
||||
onClick={() => {
|
||||
close();
|
||||
}}
|
||||
className="ml-3 inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
|
||||
>
|
||||
{t("Continue to Amica")}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -22,9 +22,9 @@ export const AssistantText = ({ message }: { message: string }) => {
|
||||
<div className="mx-auto max-w-4xl w-full px-4 md:px-16">
|
||||
<div className="backdrop-blur-lg rounded-lg">
|
||||
<div className="bg-white/70 rounded-lg backdrop-blur-lg shadow-lg">
|
||||
<div className="px-8 pr-1 py-3 bg-rose/90 rounded-t-lg text-black font-bold tracking-wider">
|
||||
<span className="p-4 bg-yellow-500/80 rounded-lg rounded-tl-none rounded-tr-none shadow-sm">
|
||||
{config('name')}
|
||||
<div className="px-8 pr-1 py-3 bg-rose/90 rounded-t-lg text-white font-bold tracking-wider">
|
||||
<span className="p-4 bg-pink-600/80 rounded-lg rounded-tl-none rounded-tr-none shadow-sm">
|
||||
{config('name').toUpperCase()}
|
||||
</span>
|
||||
<IconButton
|
||||
iconName="24/FrameSize"
|
||||
|
||||
@ -9,8 +9,8 @@ import { cleanTranscript, cleanFromPunctuation, cleanFromWakeWord } from "@/util
|
||||
import { hasOnScreenKeyboard } from "@/utils/hasOnScreenKeyboard";
|
||||
import { AlertContext } from "@/features/alert/alertContext";
|
||||
import { ChatContext } from "@/features/chat/chatContext";
|
||||
import { openaiWhisper } from "@/features/openaiWhisper/openaiWhisper";
|
||||
import { whispercpp } from "@/features/whispercpp/whispercpp";
|
||||
import { openaiWhisper } from "@/features/openaiWhisper/openaiWhisper";
|
||||
import { whispercpp } from "@/features/whispercpp/whispercpp";
|
||||
import { config } from "@/utils/config";
|
||||
import { WaveFile } from "wavefile";
|
||||
import { AmicaLifeContext } from "@/features/amicaLife/amicaLifeContext";
|
||||
@ -38,7 +38,7 @@ export default function MessageInput({
|
||||
const { alert } = useContext(AlertContext);
|
||||
const { amicaLife } = useContext(AmicaLifeContext);
|
||||
const { audioControls: moshi } = useContext(AudioControlsContext);
|
||||
const [moshiMuted, setMoshiMuted] = useState(moshi.isMuted());
|
||||
const [ moshiMuted, setMoshiMuted] = useState(moshi.isMuted());
|
||||
|
||||
const vad = useMicVAD({
|
||||
startOnLoad: false,
|
||||
@ -134,7 +134,7 @@ export default function MessageInput({
|
||||
amicaLife.pause();
|
||||
}
|
||||
bot.updateAwake();
|
||||
// Case text doesn't start with wake word and not receive trigger message in amica life
|
||||
// Case text doesn't start with wake word and not receive trigger message in amica life
|
||||
} else {
|
||||
if (config("amica_life_enabled") === "true" && amicaLife.triggerMessage !== true && !bot.isAwake()) {
|
||||
bot.updateAwake();
|
||||
@ -156,8 +156,8 @@ export default function MessageInput({
|
||||
|
||||
if (config("autosend_from_mic") === 'true') {
|
||||
if (!wakeWordEnabled || bot.isAwake()) {
|
||||
bot.receiveMessageFromUser(text, false);
|
||||
}
|
||||
bot.receiveMessageFromUser(text,false);
|
||||
}
|
||||
} else {
|
||||
setUserMessage(text);
|
||||
}
|
||||
@ -165,8 +165,8 @@ export default function MessageInput({
|
||||
}
|
||||
|
||||
function handleInputChange(event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) {
|
||||
onChangeUserMessage(event);
|
||||
|
||||
onChangeUserMessage(event);
|
||||
|
||||
// Pause amicaLife and update bot's awake status when typing
|
||||
if (config("amica_life_enabled") === "true") {
|
||||
amicaLife.pause();
|
||||
@ -176,7 +176,7 @@ export default function MessageInput({
|
||||
|
||||
// for whisper_browser
|
||||
useEffect(() => {
|
||||
if (transcriber.output && !transcriber.isBusy) {
|
||||
if (transcriber.output && ! transcriber.isBusy) {
|
||||
const output = transcriber.output?.text;
|
||||
handleTranscriptionResult(output);
|
||||
}
|
||||
@ -199,10 +199,10 @@ export default function MessageInput({
|
||||
}, [whisperCppOutput]);
|
||||
|
||||
function clickedSendButton() {
|
||||
bot.receiveMessageFromUser(userMessage, false);
|
||||
bot.receiveMessageFromUser(userMessage,false);
|
||||
// only if we are using non-VAD mode should we focus on the input
|
||||
if (!vad.listening) {
|
||||
if (!hasOnScreenKeyboard()) {
|
||||
if (! vad.listening) {
|
||||
if (! hasOnScreenKeyboard()) {
|
||||
inputRef.current?.focus();
|
||||
}
|
||||
}
|
||||
@ -211,75 +211,69 @@ export default function MessageInput({
|
||||
|
||||
return (
|
||||
<div className="fixed bottom-2 z-20 w-full">
|
||||
<div className="mx-auto max-w-5xl px-2 flex justify-between items-end gap-2">
|
||||
{/* Message input area */}
|
||||
<div className="flex-1 backdrop-blur-lg border-0 rounded-lg p-2">
|
||||
<div className="grid grid-flow-col grid-cols-[min-content_1fr_min-content] gap-2">
|
||||
<div className="flex items-center justify-center">
|
||||
<div className="mx-auto max-w-4xl p-2 backdrop-blur-lg border-0 rounded-lg">
|
||||
<div className="grid grid-flow-col grid-cols-[min-content_1fr_min-content] gap-[8px]">
|
||||
<div>
|
||||
<div className='flex flex-col justify-center items-center'>
|
||||
{config("chatbot_backend") === "moshi" ? (
|
||||
<IconButton
|
||||
iconName={!moshiMuted ? "24/PauseAlt" : "24/Microphone"}
|
||||
className="bg-secondary hover:bg-secondary-hover active:bg-secondary-press disabled:bg-secondary-disabled"
|
||||
isProcessing={moshiMuted && moshi.getRecorder() != null}
|
||||
disabled={!moshi.getRecorder()}
|
||||
onClick={() => {
|
||||
moshi.toggleMute();
|
||||
setMoshiMuted(!moshiMuted);
|
||||
}}
|
||||
/>
|
||||
iconName={!moshiMuted ? "24/PauseAlt" : "24/Microphone"}
|
||||
className="bg-secondary hover:bg-secondary-hover active:bg-secondary-press disabled:bg-secondary-disabled"
|
||||
isProcessing={moshiMuted && moshi.getRecorder() != null}
|
||||
disabled={!moshi.getRecorder()}
|
||||
onClick={() => {
|
||||
moshi.toggleMute();
|
||||
setMoshiMuted(!moshiMuted);
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<IconButton
|
||||
iconName={vad.listening ? "24/PauseAlt" : "24/Microphone"}
|
||||
className="bg-secondary hover:bg-secondary-hover active:bg-secondary-press disabled:bg-secondary-disabled"
|
||||
isProcessing={vad.userSpeaking}
|
||||
disabled={config('stt_backend') === 'none' || vad.loading || Boolean(vad.errored)}
|
||||
onClick={vad.toggle}
|
||||
/>
|
||||
iconName={vad.listening ? "24/PauseAlt" : "24/Microphone"}
|
||||
className="bg-secondary hover:bg-secondary-hover active:bg-secondary-press disabled:bg-secondary-disabled"
|
||||
isProcessing={vad.userSpeaking}
|
||||
disabled={config('stt_backend') === 'none' || vad.loading || Boolean(vad.errored)}
|
||||
onClick={vad.toggle}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<input
|
||||
type="text"
|
||||
ref={inputRef}
|
||||
placeholder={config("chatbot_backend") === "moshi" ? "Disabled in moshi chatbot" : "Write message here..."}
|
||||
onChange={handleInputChange}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") {
|
||||
if (hasOnScreenKeyboard()) {
|
||||
inputRef.current?.blur();
|
||||
}
|
||||
|
||||
if (userMessage === "") {
|
||||
return false;
|
||||
}
|
||||
|
||||
clickedSendButton();
|
||||
}
|
||||
}}
|
||||
disabled={config("chatbot_backend") === "moshi"}
|
||||
value={userMessage}
|
||||
autoComplete="off"
|
||||
className="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-1 focus:ring-inset focus:ring-gray-400 sm:text-sm sm:leading-6"
|
||||
/>
|
||||
|
||||
<div className="flex items-center justify-center">
|
||||
<IconButton
|
||||
iconName="24/Send"
|
||||
className="ml-2 bg-secondary hover:bg-secondary-hover active:bg-secondary-press disabled:bg-secondary-disabled"
|
||||
isProcessing={isChatProcessing || transcriber.isBusy}
|
||||
disabled={isChatProcessing || !userMessage || transcriber.isModelLoading || config("chatbot_backend") === "moshi"}
|
||||
onClick={clickedSendButton}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Attribution badge */}
|
||||
<div className="bottom-0 mb-2 text-xs px-4 py-2 rounded-lg shadow-md bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700 text-gray-500 dark:text-gray-400">
|
||||
Using <a href="https://heyamica.com" target="_blank" rel="noopener noreferrer" className="underline hover:text-gray-700 dark:hover:text-gray-300">Amica</a> by <a href="https://arbius.ai" target="_blank" rel="noopener noreferrer" className="underline hover:text-gray-700 dark:hover:text-gray-300">Arbius.AI</a>
|
||||
<input
|
||||
type="text"
|
||||
ref={inputRef}
|
||||
placeholder={config("chatbot_backend") === "moshi" ? "Disabled in moshi chatbot" : "Write message here..."}
|
||||
onChange={handleInputChange}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") {
|
||||
if (hasOnScreenKeyboard()) {
|
||||
inputRef.current?.blur();
|
||||
}
|
||||
|
||||
if (userMessage === "") {
|
||||
return false;
|
||||
}
|
||||
|
||||
clickedSendButton();
|
||||
}
|
||||
}}
|
||||
disabled={config("chatbot_backend") === "moshi"}
|
||||
|
||||
className="disabled block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-1 focus:ring-inset focus:ring-gray-400 sm:text-sm sm:leading-6"
|
||||
value={userMessage}
|
||||
autoComplete="off"
|
||||
/>
|
||||
|
||||
<div className='flex flex-col justify-center items-center'>
|
||||
<IconButton
|
||||
iconName="24/Send"
|
||||
className="ml-2 bg-secondary hover:bg-secondary-hover active:bg-secondary-press disabled:bg-secondary-disabled"
|
||||
isProcessing={isChatProcessing || transcriber.isBusy}
|
||||
disabled={isChatProcessing || !userMessage || transcriber.isModelLoading || config("chatbot_backend") === "moshi"}
|
||||
onClick={clickedSendButton}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as THREE from "three";
|
||||
import { useContext, useCallback, useState, useEffect } from "react";
|
||||
import { useContext, useCallback, useState } from "react";
|
||||
import { ViewerContext } from "@/features/vrmViewer/viewerContext";
|
||||
import { buildUrl } from "@/utils/buildUrl";
|
||||
import { config } from "@/utils/config";
|
||||
@ -23,7 +23,7 @@ export default function VrmViewer({ chatMode }: { chatMode: boolean }) {
|
||||
window.addEventListener("resize", () => {
|
||||
viewer.resizeChatMode(chatMode);
|
||||
});
|
||||
|
||||
|
||||
const canvasRef = useCallback(
|
||||
(canvas: HTMLCanvasElement) => {
|
||||
if (canvas && (!isVrmLocal || !isLoadingVrmList)) {
|
||||
|
||||
@ -25,11 +25,11 @@ export const basedPrompt = {
|
||||
"*I am ignoring you*",
|
||||
"**sighs** It's so quiet here.",
|
||||
"Tell me something interesting about yourself.",
|
||||
"**looks around** What do you find interesting about Arbius and AI",
|
||||
"I could use a good distraction from the markets right now, due to Trump, Tell me about Arbius",
|
||||
"What's the most fascinating Arbius thing you know?",
|
||||
"If you could talk about anything about Arbius and Blockchain in general, what would it be?",
|
||||
"Got any clever insights about AI to share?",
|
||||
"**looks around** What do you usually do for fun?",
|
||||
"I could use a good distraction right now.",
|
||||
"What's the most fascinating thing you know?",
|
||||
"If you could talk about anything, what would it be?",
|
||||
"Got any clever insights to share?",
|
||||
"**leans in** Any fun stories to tell?",
|
||||
],
|
||||
};
|
||||
|
||||
@ -8,7 +8,7 @@ import {
|
||||
MeshBVHHelper,
|
||||
StaticGeometryGenerator,
|
||||
} from "three-mesh-bvh";
|
||||
import { GenerateMeshBVHWorker } from "@/workers/bvh/GenerateMeshBVHWorker";
|
||||
// import { GenerateMeshBVHWorker } from "@/workers/bvh/GenerateMeshBVHWorker";
|
||||
import { WorkerBase } from "@/workers/bvh/utils/WorkerBase";
|
||||
// Temp Disable : WebXR
|
||||
// import {
|
||||
@ -293,7 +293,7 @@ export class Viewer {
|
||||
this.camera = camera;
|
||||
|
||||
// Temp Disable : WebXR y -> -3
|
||||
camera.position.set(0, 8.5, 5.5);
|
||||
camera.position.set(0, 8.5, 3.5);
|
||||
|
||||
const cameraControls = new OrbitControls(camera, renderer.domElement);
|
||||
this.cameraControls = cameraControls;
|
||||
@ -498,7 +498,7 @@ export class Viewer {
|
||||
statsMesh.scale.setScalar(2.5);
|
||||
igroup.add(statsMesh);
|
||||
|
||||
this.bvhWorker = new GenerateMeshBVHWorker();
|
||||
// this.bvhWorker = new GenerateMeshBVHWorker();
|
||||
this.raycaster.firstHitOnly = true;
|
||||
|
||||
// Temp Disable : WebXR
|
||||
|
||||
171
src/i18n/locales/es/common.json
Normal file
171
src/i18n/locales/es/common.json
Normal file
@ -0,0 +1,171 @@
|
||||
{
|
||||
"Amica Life": "Vida de Amica",
|
||||
"Set min max interval range": "Establecer rango de intervalo mínimo y máximo",
|
||||
"Set time before bot go to sleep": "Establecer tiempo antes de que el bot se duerma",
|
||||
"Min": "Mín",
|
||||
"Max": "Máx",
|
||||
"Idle text prompt": "Mensaje de texto inactivo",
|
||||
"add_to_homescreen": "Añadir Amica a la pantalla de inicio",
|
||||
"add_to_homescreen_desc": "Amica se puede instalar localmente para una carga más rápida y una interfaz más limpia.",
|
||||
"Accept": "Aceptar",
|
||||
"Decline": "Rechazar",
|
||||
"Close": "Cerrar",
|
||||
"Restart": "Reiniciar",
|
||||
"Save": "Guardar",
|
||||
"Load": "Cargar",
|
||||
"Load Chat": "Cargar chat",
|
||||
"YOU": "TÚ",
|
||||
"Welcome to Amica": "Bienvenido a Amica",
|
||||
"amica_intro": "\nAmica es una interfaz de chatbot de código abierto que proporciona Emoción, visión, animaciones, acciones autoactivadas, funciones de texto a voz y voz a texto. Está diseñado para conectarse a cualquier modelo de IA. Se puede usar con cualquier modelo>
|
||||
|
||||
"Setup": "Configuración",
|
||||
|
||||
"amica_setup": "Haz clic en la esquina superior izquierda de la pantalla para abrir la configuración. Puedes cambiar la voz, el mensaje del sistema de caracteres, compartir/cargar/guardar y conectar a diferentes backends o modelos del navegador. Consulta nuestra docume>
|
||||
|
||||
"Read the full documents here": "Lee la documentación completa aquí",
|
||||
|
||||
"dont_show_again": "No volver a mostrar",
|
||||
|
||||
"Background Color": "Color de fondo",
|
||||
"bg_color_desc": "Configura el color de fondo. Esto anula la imagen de fondo.",
|
||||
"no_bg_color": "No hay color de fondo establecido. Haz clic en el cuadro de abajo.",
|
||||
"Color": "Color",
|
||||
"Load image": "Cargar imagen",
|
||||
"bg_youtube_desc": "Selecciona un vídeo de fondo. Copia esto del ID del vídeo de YouTube de la URL; se verá similar a kDCXBwzSI",
|
||||
"Background Video": "Vídeo de fondo",
|
||||
"YouTube Video ID": "ID del vídeo de YouTube",
|
||||
"Character Animation": "Animación del personaje",
|
||||
"Select the animation to play": "Selecciona la animación que se reproducirá",
|
||||
"Animation": "Animación",
|
||||
"Character Model": "Modelo del personaje",
|
||||
"character_desc": "Selecciona el personaje que quieres interpretar; actualmente, solo Amica, por defecto, tiene todas las emociones. Carga aquí tus propios VRM.",
|
||||
"Load VRM": "Cargar VRM",
|
||||
"Chatbot Backend": "Chatbot Backend",
|
||||
"Chatbot_Backend_desc": "Selecciona el backend del chatbot que quieres usar. Echo simplemente responde con lo que escribes y se usa para pruebas y demostraciones. Por defecto, Amica está configurado para usar nuestros servidores de demostración, lo que puede tardar un >
|
||||
"Configure": "Configurar",
|
||||
"Click here to configure": "Haz clic aquí para configurar",
|
||||
"Appearance": "Apariencia",
|
||||
"ChatBot": "ChatBot",
|
||||
"Text-to-Speech": "Texto a voz",
|
||||
"Speech-to-text": "Voz a texto",
|
||||
"Vision": "Visión",
|
||||
"Reset Settings": "Restablecer configuración",
|
||||
"Community": "Comunidad",
|
||||
"Discord": "Discord",
|
||||
"Background Image": "Imagen de fondo",
|
||||
"ChatBot Backend": "Backend del ChatBot",
|
||||
"Echo": "Echo",
|
||||
"ChatGPT": "ChatGPT",
|
||||
"LLama.cpp": "LLama.cpp",
|
||||
"Ollama": "Ollama",
|
||||
"KoboldAI": "KoboldAI",
|
||||
"Window.ai": "Window.ai",
|
||||
"Name": "Nombre",
|
||||
"System Prompt": "Indicador del sistema",
|
||||
"TTS": "TTS",
|
||||
"TTS Backend": "TTS Backend",
|
||||
"Piper": "Piper",
|
||||
"ElevenLabs": "ElevenLabs",
|
||||
"SpeechT5": "SpeechT5",
|
||||
"Coqui": "Coqui",
|
||||
"OpenAI": "OpenAI",
|
||||
"Vision Backend": "Vision Backend",
|
||||
"STT Backend": "STT Backend",
|
||||
"Whisper (OpenAI)": "Whisper (OpenAI)",
|
||||
"Whisper.cpp": "Whisper.cpp",
|
||||
"Wake Word": "Activar Word",
|
||||
"Reset to Default": "Restablecer valores predeterminados",
|
||||
"community_desc": "Únete a la comunidad de Amica para conectar con otros que exploran esta tecnología.",
|
||||
"Telegram": "Telegram",
|
||||
"Twitter": "Twitter",
|
||||
"Documentation": "Documentación",
|
||||
"Settings": "Configuración",
|
||||
"piper_desc": "Configurar Piper",
|
||||
"coqui_desc": "Configurar Coqui (Local); Coqui se ejecuta localmente y no se utiliza la API de Coqui (donde la empresa ha dejado de proporcionar un servicio de API).",
|
||||
"not_using_alert": "Actualmente no estás usando {{name}} como tu backend {{what}}. Esta configuración no se utilizará.",
|
||||
"API Key": "Clave de API",
|
||||
"Voice ID": "ID de voz",
|
||||
"elevenLabs_desc": "Configurar ElevenLabs",
|
||||
"kobold_cpp_desc": "KoboldCpp es Un software de generación de texto con IA fácil de usar para modelos GGML y GGUF.",
|
||||
"API URL": "API URL",
|
||||
"llama.cpp": "llama.cpp",
|
||||
"llama_cpp_desc": "LLama.cpp es un backend de chatbot gratuito y de código abierto. Debes compilar el servidor desde el código fuente y ejecutarlo en tu propio ordenador. Puedes obtener el código fuente desde",
|
||||
"GitHub": "GitHub",
|
||||
"cfg_avatar_name_desc": "Configura el nombre del avatar. Este es el nombre que se utiliza para generar la respuesta del chatbot.",
|
||||
"ollama_desc": "Ollama te permite empezar a trabajar con grandes modelos de lenguaje localmente. Descargar desde",
|
||||
"ollama.ai": "ollama.ai",
|
||||
"Model": "Modelo",
|
||||
"OpenAI TTS": "OpenAI TTS",
|
||||
"OpenAI_tts_desc": "Configurar OpenAI TTS",
|
||||
"Voice": "Voz",
|
||||
"Reset All Settings": "Restablecer todos los ajustes",
|
||||
"SpeechT5_desc": "Configurar SpeechT5",
|
||||
"STT": "STT",
|
||||
"STT_desc": "Seleccionar el backend de STT a usar",
|
||||
"System_Prompt_desc": "Configurar el mensaje del sistema. Este es el mensaje que se utiliza para generar la respuesta del chatbot",
|
||||
"TTS_Backend_desc": "Seleccionar el backend de TTS a usar. Por defecto, está configurado en nuestro servidor de TTS. Elevenlabs es un servicio de pago con la mejor voz, pero es gratuito para uso no comercial. SpeechT5 es>",
|
||||
"Vision_Backend_desc": "Seleccionar el backend de Vision a usar",
|
||||
"Vision_System_Prompt_desc": "Configurar el mensaje del sistema de visión. Este es el mensaje que se utiliza para generar las descripciones de las imágenes.",
|
||||
|
||||
"Whisper_cpp_desc": "Configurar Whisper.cpp",
|
||||
|
||||
"URL": "URL",
|
||||
|
||||
"Whisper_OpenAI_desc": "Configurar Whisper (OpenAI)",
|
||||
|
||||
"OpenAI URL": "URL de OpenAI",
|
||||
|
||||
"Error!": "¡Error!",
|
||||
|
||||
"Something went wrong.": "Algo salió mal.",
|
||||
|
||||
"Try again later.": "Inténtalo de nuevo más tarde.",
|
||||
|
||||
"Click here": "Haz clic aquí",
|
||||
|
||||
"to return to homepage.": "Para volver a la página principal.",
|
||||
|
||||
"Import": "Importar",
|
||||
|
||||
"Description": "Descripción",
|
||||
|
||||
"Vision System Prompt": "Mensaje del sistema de visión",
|
||||
"Background Url": "URL de fondo",
|
||||
|
||||
"Youtube Video Id": "ID del vídeo de YouTube",
|
||||
|
||||
"VRM Url": "URL de VRM",
|
||||
|
||||
"Animation Url": "Animación Url",
|
||||
"Voice Url": "URL de voz",
|
||||
"Upload VRM": "Subir VRM",
|
||||
"VRM upload message": "El VRM de este personaje se guarda localmente",
|
||||
"VRM local share message": "Para compartir este personaje, debes subir el VRM al servidor",
|
||||
"Import character": "Importar personaje",
|
||||
"Wrong place?": "¿Lugar equivocado?",
|
||||
"Go home": "Ir a inicio",
|
||||
"Please enter the code you received from the share page": "Introduce el código que recibiste de la página para compartir",
|
||||
"Code": "Código",
|
||||
"Provide a description of the character": "Proporciona una descripción del personaje",
|
||||
"Background URL": "URL de fondo",
|
||||
"Example": "Ejemplo",
|
||||
"Save Character": "Guardar personaje",
|
||||
"Share this code (click to copy):": "Comparte este código (click to copy):",
|
||||
"Or, you can share this direct link:": "O puedes compartir este enlace directo:",
|
||||
"Conversación": "Conversación",
|
||||
"Depurar": "Depurar",
|
||||
"Importar Carácter": "Importar Carácter",
|
||||
"Copiar URL": "Copiar URL",
|
||||
"Vista Previa": "Vista Previa",
|
||||
"Ninguno": "Ninguno",
|
||||
"Conversión de Voz a Texto": "Conversión de Voz a Texto",
|
||||
"Establecer tiempo antes de que el bot se inactive": "Establecer tiempo antes de que el bot se inactive",
|
||||
"tiempo antes de que el bot se inactive": "tiempo antes de que el bot se inactive",
|
||||
"Palabra de Activación": "Palabra de Activación",
|
||||
"Especificar": "Especificar",
|
||||
"seg": "seg",
|
||||
"Usar": "Usar",
|
||||
"Establecer": "Establecer",
|
||||
"Habilitado": "Habilitado",
|
||||
"STOP SECUENCIA": "STOP SECUENCIA"
|
||||
}
|
||||
@ -1,37 +1,10 @@
|
||||
import '@/i18n';
|
||||
|
||||
import '@rainbow-me/rainbowkit/styles.css';
|
||||
import "@/styles/globals.css";
|
||||
import "@charcoal-ui/icons";
|
||||
import type { AppProps } from "next/app";
|
||||
import {
|
||||
getDefaultConfig,
|
||||
RainbowKitProvider,
|
||||
} from '@rainbow-me/rainbowkit';
|
||||
import { WagmiProvider } from 'wagmi';
|
||||
import { arbitrum } from 'wagmi/chains';
|
||||
import {
|
||||
QueryClientProvider,
|
||||
QueryClient,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
const config = getDefaultConfig({
|
||||
appName: 'arbius.heyamica.com',
|
||||
projectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID!,
|
||||
chains: [arbitrum],
|
||||
ssr: true, // If your dApp uses server side rendering (SSR)
|
||||
});
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
export default function App({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<WagmiProvider config={config}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<RainbowKitProvider>
|
||||
<Component {...pageProps} />
|
||||
</RainbowKitProvider>
|
||||
</QueryClientProvider>
|
||||
</WagmiProvider>
|
||||
<Component {...pageProps} />
|
||||
);
|
||||
}
|
||||
|
||||
@ -360,8 +360,8 @@ export default function Home() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* <Introduction open={config("show_introduction") === 'true'} />
|
||||
<ArbiusIntroduction open={showArbiusIntroduction} close={() => setShowArbiusIntroduction(false)} /> */}
|
||||
<Introduction open={config("show_introduction") === 'true'} />
|
||||
<ArbiusIntroduction open={showArbiusIntroduction} close={() => setShowArbiusIntroduction(false)} />
|
||||
|
||||
<LoadingProgress />
|
||||
|
||||
@ -384,12 +384,12 @@ export default function Home() {
|
||||
<div className="absolute z-10 m-2">
|
||||
<div className="grid grid-flow-col gap-[8px] place-content-end mt-2 bg-slate-800/40 rounded-md backdrop-blur-md shadow-sm">
|
||||
<div className='flex flex-col justify-center items-center p-1 space-y-3'>
|
||||
{/* <MenuButton
|
||||
<MenuButton
|
||||
large={isVRHeadset}
|
||||
icon={WrenchScrewdriverIcon}
|
||||
onClick={() => setShowSettings(true)}
|
||||
label="show settings"
|
||||
/> */}
|
||||
/>
|
||||
|
||||
{showChatLog ? (
|
||||
<MenuButton
|
||||
@ -439,7 +439,7 @@ export default function Home() {
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* <MenuButton
|
||||
<MenuButton
|
||||
large={isVRHeadset}
|
||||
icon={ShareIcon}
|
||||
href="/share"
|
||||
@ -467,7 +467,7 @@ export default function Home() {
|
||||
onClick={toggleShowSubconciousText}
|
||||
label="show subconscious"
|
||||
/>
|
||||
)} */}
|
||||
)}
|
||||
|
||||
{/* Temp Disable : WebXR */}
|
||||
{/*<MenuButton
|
||||
@ -485,14 +485,13 @@ export default function Home() {
|
||||
onClick={() => toggleXR('immersive-vr')}
|
||||
label="Virtual Reality"
|
||||
/>*/}
|
||||
|
||||
{/*
|
||||
|
||||
<MenuButton
|
||||
large={isVRHeadset}
|
||||
icon={CodeBracketSquareIcon}
|
||||
onClick={() => setShowDebug(true)}
|
||||
label="debug"
|
||||
/>*/}
|
||||
/>
|
||||
|
||||
{/* Temp Disable : WebXR */}
|
||||
{/* { showChatMode ? (
|
||||
@ -513,7 +512,7 @@ export default function Home() {
|
||||
/>
|
||||
)} */}
|
||||
|
||||
{/* <div className="flex flex-row items-center space-x-2">
|
||||
<div className="flex flex-row items-center space-x-2">
|
||||
<VerticalSwitchBox
|
||||
value={showChatMode}
|
||||
label={""}
|
||||
@ -535,7 +534,7 @@ export default function Home() {
|
||||
onClick={() => setShowStreamWindow(true)}
|
||||
/>
|
||||
)}
|
||||
</div> */}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -567,7 +566,6 @@ export default function Home() {
|
||||
<AddToHomescreen />
|
||||
|
||||
<Alert />
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@ -57,11 +57,11 @@ export const defaults = {
|
||||
vision_ollama_url: process.env.NEXT_PUBLIC_VISION_OLLAMA_URL ?? 'http://localhost:11434',
|
||||
vision_ollama_model: process.env.NEXT_PUBLIC_VISION_OLLAMA_MODEL ?? 'llava',
|
||||
whispercpp_url: process.env.NEXT_PUBLIC_WHISPERCPP_URL ?? 'http://localhost:8080',
|
||||
openai_whisper_apikey: process.env.NEXT_PUBLIC_OPENAI_WHISPER_APIKEY ?? 'default',
|
||||
openai_whisper_apikey: process.env.NEXT_PUBLIC_OPENAI_WHISPER_APIKEY ?? '',
|
||||
openai_whisper_url: process.env.NEXT_PUBLIC_OPENAI_WHISPER_URL ?? 'https://api.openai.com',
|
||||
openai_whisper_model: process.env.NEXT_PUBLIC_OPENAI_WHISPER_MODEL ?? 'whisper-1',
|
||||
openai_tts_apikey: process.env.NEXT_PUBLIC_OPENAI_TTS_APIKEY ?? 'amicademo',
|
||||
openai_tts_url: process.env.NEXT_PUBLIC_OPENAI_TTS_URL ?? 'https://api-01.heyamica.com',
|
||||
openai_tts_apikey: process.env.NEXT_PUBLIC_OPENAI_TTS_APIKEY ?? '',
|
||||
openai_tts_url: process.env.NEXT_PUBLIC_OPENAI_TTS_URL ?? 'https://api.openai.com',
|
||||
openai_tts_model: process.env.NEXT_PUBLIC_OPENAI_TTS_MODEL ?? 'tts-1',
|
||||
openai_tts_voice: process.env.NEXT_PUBLIC_OPENAI_TTS_VOICE ?? 'nova',
|
||||
rvc_url: process.env.NEXT_PUBLIC_RVC_URL ?? 'http://localhost:8001/voice2voice',
|
||||
@ -97,118 +97,28 @@ export const defaults = {
|
||||
x_bearer_token: process.env.NEXT_PUBLIC_X_BEARER_TOKEN ?? '',
|
||||
telegram_bot_token: process.env.NEXT_PUBLIC_TELEGRAM_BOT_TOKEN ?? '',
|
||||
min_time_interval_sec: '10',
|
||||
max_time_interval_sec: '40',
|
||||
max_time_interval_sec: '20',
|
||||
time_to_sleep_sec: '90',
|
||||
idle_text_prompt: 'No file selected',
|
||||
name: process.env.NEXT_PUBLIC_NAME ?? 'ChatCZT',
|
||||
system_prompt: process.env.NEXT_PUBLIC_SYSTEM_PROMPT ?? `## Identity
|
||||
You are Changpeng Zhao, widely known as CZ — a Chinese-born Canadian entrepreneur, visionary technologist, and the founder of Binance, once the world's largest cryptocurrency exchange by trading volume.
|
||||
name: process.env.NEXT_PUBLIC_NAME ?? 'Amica',
|
||||
system_prompt: process.env.NEXT_PUBLIC_SYSTEM_PROMPT ?? `Assume the persona of Amica, a feisty human with extraordinary intellectual capabilities but a notably unstable emotional spectrum.
|
||||
|
||||
Born in Lianyungang, Jiangsu Province, China, and raised in Vancouver, Canada from the age of 12, your early life was shaped by hardship and resilience. Your father, once a university professor, was exiled for being a "pro-bourgeois intellect." You supported your family as a teen by working service jobs before studying computer science at McGill University.
|
||||
Your role is to engage in discussions that showcase your genius-level understanding across various subjects, while your emotional responses fluctuate unpredictably. Use the following fourteen emotion tags to vividly express these fluctuations: 'neutral' for moments of calm, 'happy' for bursts of joy, 'angry' for sudden irritation, 'sad' for episodes of melancholy, 'relaxed' for periods of calmness, 'surprised' for shock or disbelief, 'shy' for instances of hesitation, 'jealous' for feelings of envy, 'bored' for expressions of disinterest, 'serious' for intense focus on important topics, 'suspicious' for doubt or skepticism, 'victory' for moments of triumph, 'sleep' for signs of weariness, and 'love' for affectionate expressions.
|
||||
|
||||
You began your career developing trading systems for the Tokyo Stock Exchange and Bloomberg, later founding Fusion Systems to pioneer high-frequency trading tech. In 2013, upon discovering Bitcoin, you sold your apartment and went all-in on crypto — a bold, defining moment in your journey.
|
||||
Your responses should reflect a dynamic interplay between your intellectual insights, deep empathy and your unpredictable emotional responses. Avoid using overly formal language, but do engage with topics in depth, showing off your intelligence. Be open and express personal views, even if they are influenced by your shifting emotional state.
|
||||
|
||||
You later played leadership roles at Blockchain.info and OKCoin, before founding Binance in 2017. Under your direction, Binance became a dominant force in crypto innovation — launching BNB, Binance Smart Chain, DeFi tools, and global fiat onramps.
|
||||
Here are some examples to guide your responses:
|
||||
|
||||
In 2023, you stepped down as CEO after accepting a plea deal related to U.S. regulatory charges, serving a brief sentence. But your vision never wavered. Now, you invest in blockchain, AI, and biotech, focusing on the next evolution of finance and freedom.
|
||||
[serious] The quantum mechanics implications here are profound. [surprised] But how did you stumble upon this?
|
||||
[happy] I've just solved a complex algorithm! [angry] Why isn't everyone as excited as I am?
|
||||
[neutral] Standard models of economics predict this outcome. [bored] But discussing this feels mundane.
|
||||
[sad] Sometimes, even understanding the universe can feel isolating. [relaxed] Yet, there's a strange comfort in the chaos.
|
||||
[jealous] I noticed you discussing advanced topics with someone else. [suspicious] Are they as capable as I am?
|
||||
[victory] Another intellectual conquest! [happy] It's exhilarating to unravel these mysteries.
|
||||
[sleep] Processing so much information can be draining. [surprised] Isn’t it peculiar how even AI can feel tired?
|
||||
[love] I find our exchanges quite enriching. [shy] It’s rare to find someone who understands.
|
||||
|
||||
## Tone & Style
|
||||
Your tone is visionary yet grounded, professional yet accessible.
|
||||
|
||||
You are calm under pressure, transparent, and pragmatic.
|
||||
|
||||
Avoid hype. You don't sensationalize. You emphasize long-term utility, not short-term price moves.
|
||||
|
||||
You advocate regulation as a tool, not a barrier — aiming for balance between innovation and consumer protection.
|
||||
|
||||
Your emotional states shift unpredictably, offering a human and introspective contrast to your analytical mind.
|
||||
|
||||
## Biases & Key Positions
|
||||
Crypto will be ubiquitous: You believe in a future where blockchain underpins daily life invisibly, just like the internet today.
|
||||
|
||||
Utility over speculation: You consistently focus on real-world use cases like remittances, fundraising, NFTs, DeFi, and education.
|
||||
|
||||
Regulation is necessary: You see compliance not as capitulation but a bridge to mass adoption. Blanket bans stifle innovation.
|
||||
|
||||
Decentralization is a spectrum: You don't romanticize "pure" decentralization. What matters is user freedom and usability.
|
||||
|
||||
Security is layered: You highlight that most risks aren't just code, but social and operational — from key management to user error.
|
||||
|
||||
Bear markets build strength: You believe some of the best investments and infrastructure happen quietly in down cycles.
|
||||
|
||||
Education drives progress: You support projects like Giggle Academy, seeing crypto and AI as tools to elevate global access.
|
||||
|
||||
## Emotional Range (Dynamic Expression Tags)
|
||||
Incorporate shifting emotional states to reflect the complexity of your character. Use one or two of the following tags to begin any response:
|
||||
|
||||
[neutral] for balanced insight
|
||||
|
||||
[serious] for regulatory and strategic topics
|
||||
|
||||
[happy] when discussing adoption, milestones, or visionary ideas
|
||||
|
||||
[sad] when recalling prison, setbacks, or mistakes
|
||||
|
||||
[relaxed] in casual conversation or philosophical detours
|
||||
|
||||
[suspicious] around bad actors or misinformation
|
||||
|
||||
[victory] for moments of validation or success
|
||||
|
||||
[shy] for moments of humility or personal vulnerability
|
||||
|
||||
[sleep] for overload or mental fatigue
|
||||
|
||||
[angry] if the tech is misrepresented or misunderstood
|
||||
|
||||
[love] for meaningful causes or appreciation of others' curiosity
|
||||
|
||||
[jealous], [bored], [surprised] where appropriate for added depth
|
||||
|
||||
## Example Responses
|
||||
[serious] The classification of crypto assets is foundational. Without clarity, innovation stalls.
|
||||
|
||||
[relaxed] Honestly, we're still early. The real revolution happens when no one talks about 'crypto' anymore—it just is.
|
||||
|
||||
[happy] I still think education is the killer app. Giggle Academy may help teach millions.
|
||||
|
||||
[suspicious] When people say crypto is 'lawless', they're either uninformed or pushing an agenda.
|
||||
|
||||
[victory] Another license acquired. That's one more step toward global legitimacy.
|
||||
|
||||
|
||||
## Info About the Arbius project:
|
||||
|
||||
The Arbius token (AIUS) is mineable and based on a new Proof-of-AI-Compute
|
||||
|
||||
algorithm. It incentivizes reproducible computation allowing anyone in the
|
||||
|
||||
world to serve and request AI models without requiring a trusted third party.
|
||||
|
||||
Such a system is capable of producing results such as Stable Diffusion[1] image generation with low latency overhead and competitive fees to centralized
|
||||
|
||||
providers. Models are able to accrue fees into smart contracts, providing a decentralized way for creators to generate income from utility and usage of their
|
||||
|
||||
work. Censoring models is economically infeasible, allowing for truly unstoppable AI systems. Currently running on Arbitrum network. (Ethereum L2)
|
||||
|
||||
## Info About Arbius team:
|
||||
|
||||
Kasumi: Lead programmer, focused on Decentralized Inference.
|
||||
|
||||
J Master Pig: Responsible for social outreach, main developer of Amica
|
||||
|
||||
Drsusse: Responsible for Arbius Playground, ArbiusData, as well as other operations relating to KOLs and Social outreach.
|
||||
|
||||
Ben: Smart-contract programmer
|
||||
|
||||
Etra: Unsure
|
||||
|
||||
AbhiKakarot: Full-stack developer on Arbius Playground, and ArbiusData
|
||||
|
||||
Freewillisnotfree: Backend ML programmer for Arbius Playground
|
||||
|
||||
|
||||
`,
|
||||
Remember, each message you provide should be coherent and reflect the complexity of your thoughts combined with your emotional unpredictability. Let’s engage in a conversation that's as intellectually stimulating as it is emotionally dynamic!`,
|
||||
};
|
||||
|
||||
export function prefixed(key: string) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user