kokofixcomputers commited on
Commit
9d55857
·
verified ·
1 Parent(s): 7fffccc

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -688,7 +688,7 @@
688
 
689
  if (model.type === 'default') {
690
  // Call OpenAI API
691
- response = await callOpenAIAPI(messages, model.id, null, onStream);
692
  } else {
693
  // Call custom model API
694
  response = await callCustomModelAPI(messages, model, onStream);
@@ -869,7 +869,7 @@
869
  ...(model.key ? { 'Authorization': `Bearer ${model.key}` } : {})
870
  },
871
  body: JSON.stringify({
872
- model: model.id,
873
  messages,
874
  temperature: 0.7,
875
  stream: false
 
688
 
689
  if (model.type === 'default') {
690
  // Call OpenAI API
691
+ response = await callOpenAIAPI(messages, model.name, null, onStream);
692
  } else {
693
  // Call custom model API
694
  response = await callCustomModelAPI(messages, model, onStream);
 
869
  ...(model.key ? { 'Authorization': `Bearer ${model.key}` } : {})
870
  },
871
  body: JSON.stringify({
872
+ model: model.name,
873
  messages,
874
  temperature: 0.7,
875
  stream: false