v71: переезд на lang.kube5s.ru (германская ВМ, nginx, без кубера)
This commit is contained in:
+2
-2
@@ -12,7 +12,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
|
||||
@@ -29,7 +29,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({
|
||||
|
||||
Reference in New Issue
Block a user