@ -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,
}
@ -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()