From 6969b55b3ebf0560e91cccd9a1784c0c5494af31 Mon Sep 17 00:00:00 2001 From: Kibin Shin Date: Mon, 22 Jul 2024 14:43:55 +0900 Subject: [PATCH] Change event message format --- .gitignore | 1 + pkg/openai/client.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index dc885955..707d130f 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /.env* ui/ gptscript.code-workspace +examples/ diff --git a/pkg/openai/client.go b/pkg/openai/client.go index 53252895..d82b8e1e 100644 --- a/pkg/openai/client.go +++ b/pkg/openai/client.go @@ -361,7 +361,7 @@ func (c *Client) Call(ctx context.Context, messageRequest types.CompletionReques id := counter.Next() status <- types.CompletionStatus{ CompletionID: id, - Request: request, + Request: messageRequest.Messages, } var cacheResponse bool