diff --git a/openai/client.go b/openai/client.go index ac89f2e..0c7c7ec 100644 --- a/openai/client.go +++ b/openai/client.go @@ -41,14 +41,7 @@ func (c Client) Chat(messages []*ChatMessage) (*ChatResponse, error) { return nil, fmt.Errorf("failed to query openai. Error: %s", err.Error()) } - var test interface{} - if err := json.Unmarshal(res.Body(), &test); err != nil { - fmt.Println("ERROR: ", err.Error()) - } - - fmt.Println("Parsing response in interface:") - indent, _ := json.MarshalIndent(test, "\n", " ") - fmt.Printf("\n%+v\n", indent) + fmt.Println("body response: ", string(res.Body()), res.Status()) var r ChatResponse if err := json.Unmarshal(res.Body(), &r); err != nil {