1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-28 23:20:10 +02:00

сделал Start_ctx()

This commit is contained in:
Nikitin Aleksandr
2024-09-27 15:36:29 +03:00
parent abdea4d808
commit 4a2270cca1
1132 changed files with 66003 additions and 22006 deletions

View File

@@ -60,7 +60,16 @@ func (c *Client) CreateChatCompletionStream(
}
request.Stream = true
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL(urlSuffix, request.Model), withBody(request))
if err = validateRequestForO1Models(request); err != nil {
return
}
req, err := c.newRequest(
ctx,
http.MethodPost,
c.fullURL(urlSuffix, withModel(request.Model)),
withBody(request),
)
if err != nil {
return nil, err
}