Split character from state

This commit is contained in:
mudler
2024-04-03 18:04:50 +02:00
parent a404b75fbe
commit e6090c62cf
7 changed files with 261 additions and 249 deletions

View File

@@ -30,7 +30,6 @@ func GenerateJSON(ctx context.Context, client *openai.Client, model, text string
return fmt.Errorf("no response from OpenAI API")
}
fmt.Println(resp.Choices[0].Message.Content)
err = json.Unmarshal([]byte(resp.Choices[0].Message.Content), i)
if err != nil {
return err