1
0
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:
Nikitin Aleksandr
2023-05-19 16:05:54 +03:00
parent c03e2072bd
commit 53f4efc185
3465 changed files with 731510 additions and 24593 deletions

View File

@@ -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
}