Spaces:
Running
Running
Update index.html
Browse files687 unmodified lines688689690691692693694174 unmodified lines869870871872873874875687 unmodified linesif (model.type === 'default') {// Call OpenAI APIresponse = await callOpenAIAPI(messages, model.id, null, onStream);} else {// Call custom model APIresponse = await callCustomModelAPI(messages, model, onStream);174 unmodified lines...(model.key ? { 'Authorization': `Bearer ${model.key}` } : {})},body: JSON.stringify({model: model.id,messages,temperature: 0.7,stream: false687 unmodified lines688689690691692693694174 unmodified lines869870871872873874875687 unmodified linesif (model.type === 'default') {// Call OpenAI APIresponse = await callOpenAIAPI(messages, model.name, null, onStream);} else {// Call custom model APIresponse = await callCustomModelAPI(messages, model, onStream);174 unmodified lines...(model.key ? { 'Authorization': `Bearer ${model.key}` } : {})},body: JSON.stringify({model: model.name,messages,temperature: 0.7,stream: false
index.html+2-2