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

@@ -2,6 +2,7 @@ package openai
import (
"context"
"fmt"
"net/http"
)
@@ -31,7 +32,7 @@ type EditsResponse struct {
// Perform an API call to the Edits endpoint.
func (c *Client) Edits(ctx context.Context, request EditsRequest) (response EditsResponse, err error) {
req, err := c.requestBuilder.build(ctx, http.MethodPost, c.fullURL("/edits"), request)
req, err := c.requestBuilder.build(ctx, http.MethodPost, c.fullURL("/edits", fmt.Sprint(request.Model)), request)
if err != nil {
return
}