v71: переезд на lang.kube5s.ru (германская ВМ, nginx, без кубера)

This commit is contained in:
“Naeel”
2026-05-22 20:44:35 +04:00
parent 67b82c726e
commit 1baa3e841c
4 changed files with 9 additions and 21 deletions
+3 -3
View File
@@ -264,7 +264,7 @@ async function transcribe(blob) {
console.log('[HTTP] blob ' + (blob.size/1024).toFixed(1) + 'KB → multipart POST');
try {
const r = await fetch('https://proxy.kube5s.ru/openai/v1/audio/transcriptions', {
const r = await fetch('https://lang.kube5s.ru/openai/v1/audio/transcriptions', {
method: 'POST',
headers: { 'Authorization': 'Bearer ' + GROQ_API_KEY },
body: form
@@ -281,7 +281,7 @@ async function transcribe(blob) {
async function translateToRussian(text) {
if (!GROQ_API_KEY) return;
try {
const res = await fetch('https://proxy.kube5s.ru/openai/v1/chat/completions', {
const res = await fetch('https://lang.kube5s.ru/openai/v1/chat/completions', {
method: 'POST',
headers: { 'Authorization': `Bearer ${GROQ_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
@@ -693,7 +693,7 @@ async function doCompare(blob, originalText, duration) {
<script>
// ---------- Глобальные переменные и инициализация ----------
const GROQ_API_KEY = '';
const VERSION = 'v70';
const VERSION = 'v71';
let mediaRecorder, audioChunks = [], userAudioBlob = null, ttsText = '';
let isRecording = false, isAnalyzing = false, micAnalyser = null, micAnimId = null;