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()