diff --git a/index.html b/index.html index db3d537..4c504bd 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,7 @@ + @@ -25,20 +26,43 @@

ChatVenture

Hello PLAYER! Welcome to the text adventure game where the story is made up by GPT :)

- +
+ - + -
- - - -
+
+ +
+ + + +
+
+ + + diff --git a/main.js b/main.js index f2816c1..d3c2eb3 100644 --- a/main.js +++ b/main.js @@ -1,40 +1,48 @@ const chatGptMessages = []; +const stageContainer = document.querySelector('.stage-container'); -const makeRequest = async (url, data) => { - const response = await fetch(url, { - headers: { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${_CONFIG_.API_KEY}`, - // Our _CONFIG data is imported in the HTML file using the