From b3fdf93ad1cae7f3a6956fd5121419483a671462 Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Thu, 31 Jul 2025 15:07:01 -0700 Subject: [PATCH] stuff --- clients/openai.go | 2 +- main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/openai.go b/clients/openai.go index 9640c38..5b36a13 100644 --- a/clients/openai.go +++ b/clients/openai.go @@ -51,7 +51,7 @@ func NewClient(model string) *OpenAIClient { }) return &OpenAIClient{ - APIKey: os.Getenv("OPENAI_API_KEY"), + APIKey: os.Getenv("OPEN_AI_SECRET"), Model: model, } } diff --git a/main.go b/main.go index 84f32a1..d54eb6d 100644 --- a/main.go +++ b/main.go @@ -40,6 +40,7 @@ func main() { func chatHandler(w http.ResponseWriter, r *http.Request) { + fmt.Printf("we reach the chat handler") historyMutex.Lock() defer historyMutex.Unlock()