Skip to content

Commit

Permalink
fix: add ai back
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Oct 31, 2024
1 parent 439f476 commit f4c5b0f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,11 @@ function askAi(historyMessages, userPrompt) {
});
return new Promise((resolve) => {
ky.post(aiApiUrl, {
"model": "gpt-3.5-turbo",
"temperature": 0.7,
"messages": historyMessages,
json: {
"model": "gpt-3.5-turbo",
"temperature": 0.7,
"messages": historyMessages,
}
}).
json().
then((data) => {
Expand Down

0 comments on commit f4c5b0f

Please sign in to comment.