@ -42,8 +42,6 @@ func Messages(w http.ResponseWriter, r *http.Request) {
@@ -42,8 +42,6 @@ func Messages(w http.ResponseWriter, r *http.Request) {
break
}
fmt.Printf("message: %s",message)
varmessageReceivedMessageReceived
err=json.Unmarshal(message,&messageReceived)
iferr!=nil{
@ -53,9 +51,8 @@ func Messages(w http.ResponseWriter, r *http.Request) {
@@ -53,9 +51,8 @@ func Messages(w http.ResponseWriter, r *http.Request) {
ifmessageReceived.Message==""{
messageReceived.Message="<user did not send text>"
}else{
messageReceived.Message=string(message)
}
// Note: messageReceived.Message is already properly parsed from JSON, no need to overwrite it
prompt:=fmt.Sprintf("You are a tutor that helps people learn system design. You will be given a JSON payload that looks like %s. The nodes are the components a user can put into their design and the connections will tell you how they are connected. The level name identifies what problem they are working on as well as a difficulty level. Each level has an easy, medium or hard setting. Also in the payload, there is a list of components that a user can use to build their design. Your hints and responses should only refer to these components and not refer to things that the user cannot use. Always refer to the nodes by their type. Please craft your response as if you're talking to the user. And do not reference the payload as \"payload\" but as their design. Also, please do not show the payload in your response. Do not refer to components as node-0 or whatever. Always refer to the type of component they are. Always assume that the source of traffic for any system is a user. The user component will not be visible in teh payload. Also make sure you use html to format your answer. Do not over format your response. Only use p tags. Format lists using proper lists html. Anytime the user sends a different payload back to you, make note of what is correct. Never give the actual answer, only helpful hints. If the available components do not allow the user to feasibly solve the system design problem, you should mention it and then tell them what exactly is missing from the list.",messageReceived.DesignPayload)
✅ You're in! We'll notify you when beta access is available.
✅ You're in! We'll keep you updated on our progress.
</div>
<pclass="beta-info">🔥 Be the first to know when we launch</p>
<pclass="beta-info">🔥 Stay updated on our latest developments</p>
</div>
</div>
</div>
@ -974,7 +1010,7 @@
@@ -974,7 +1010,7 @@
<divclass="faq-list">
<divclass="faq-item">
<divclass="faq-question">When will the beta be available?</div>
<divclass="faq-answer">We're currently in development and aiming to launch the beta in the coming months. Sign up for the waitlist to be notified as soon as it's ready.</div>
<divclass="faq-answer">We're currently in development and aiming to launch in the coming months. Sign up for updates to be notified as soon as it's ready.</div>
</div>
<divclass="faq-item">
<divclass="faq-question">Do I need to install anything to use the System Design Game?</div>
@ -999,13 +1035,13 @@
@@ -999,13 +1035,13 @@
<sectionclass="final-cta">
<divclass="container">
<h2>Ready to Level Up Your System Design Skills?</h2>
<p>Join the waitlist and be the first to know when our interactive browser-based platform launches.</p>
<p>Get updates and be the first to know about our latest platform developments.</p>