Implement chat completion streaming (#101)
* Implement chat completion streaming * Optimize the implementation of chat completion stream * Fix linter error
This commit is contained in:
2
chat.go
2
chat.go
@@ -49,7 +49,7 @@ type ChatCompletionResponse struct {
|
||||
Usage Usage `json:"usage"`
|
||||
}
|
||||
|
||||
// CreateChatCompletion — API call to Creates a completion for the chat message.
|
||||
// CreateChatCompletion — API call to Create a completion for the chat message.
|
||||
func (c *Client) CreateChatCompletion(
|
||||
ctx context.Context,
|
||||
request ChatCompletionRequest,
|
||||
|
||||
Reference in New Issue
Block a user