Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MRIOikko authored Oct 31, 2024
1 parent fa1fdc1 commit 97f81ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LLM.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<div class="container">
<div class="header">
<h1> OIKKO'S AI </h1>
<h1> OIKKO'S ASSISTANT </h1>
</div>

<div class="info">
Expand Down
8 changes: 4 additions & 4 deletions LLM.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function sendMessage() {
if (message === '') {
return;
}


appendMessage('user', message);
userInput.value = '';
Expand All @@ -146,17 +146,17 @@ async function sendMessage() {
method: 'POST',
headers: {
'x-rapidapi-key': '96fe58a1edmsh64abdfc6c6d56dap19fd5djsnd234de8c1a26',
'x-rapidapi-host': 'cheapest-gpt-4-turbo-gpt-4-vision-chatgpt-openai-ai-api.p.rapidapi.com',
'x-rapidapi-host': 'chat-gpt26.p.rapidapi.com',
'Content-Type': 'application/json'
},
body: JSON.stringify({
messages: [{ role: 'user', content: message }],
model: 'gpt-4o'
model: 'gpt-3.5-turbo'
})
};


const response = await fetch('https://cheapest-gpt-4-turbo-gpt-4-vision-chatgpt-openai-ai-api.p.rapidapi.com/v1/chat/completions', options);
const response = await fetch('https://chat-gpt26.p.rapidapi.com/', options);
const data = await response.json();

const botResponse = data.choices[0].message.content;
Expand Down

1 comment on commit 97f81ff

@Abstra208
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REMOVE YOUR API KEY

Please sign in to comment.