mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-27 23:18:34 +02:00
сделал telegram_client.go
This commit is contained in:
5
vendor/github.com/sashabaranov/go-openai/chat_stream.go
generated
vendored
5
vendor/github.com/sashabaranov/go-openai/chat_stream.go
generated
vendored
@@ -7,7 +7,8 @@ import (
|
||||
)
|
||||
|
||||
type ChatCompletionStreamChoiceDelta struct {
|
||||
Content string `json:"content"`
|
||||
Content string `json:"content,omitempty"`
|
||||
Role string `json:"role,omitempty"`
|
||||
}
|
||||
|
||||
type ChatCompletionStreamChoice struct {
|
||||
@@ -45,7 +46,7 @@ func (c *Client) CreateChatCompletionStream(
|
||||
}
|
||||
|
||||
request.Stream = true
|
||||
req, err := c.newStreamRequest(ctx, "POST", urlSuffix, request)
|
||||
req, err := c.newStreamRequest(ctx, "POST", urlSuffix, request, request.Model)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user