(model, task, apiKey, stream4, body, requestOptions)
| 78889 | } else if (headerName === "x-goog-api-client") { |
| 78890 | throw new GoogleGenerativeAIRequestInputError(`Header name ${headerName} can only be set using the apiClient field`); |
| 78891 | } |
| 78892 | headers.append(headerName, headerValue); |
| 78893 | } |
| 78894 | } |
| 78895 | return headers; |
| 78896 | } |
| 78897 | async function constructModelRequest(model, task, apiKey, stream4, body, requestOptions) { |
| 78898 | const url2 = new RequestUrl(model, task, apiKey, stream4, requestOptions); |
| 78899 | return { |
| 78900 | url: url2.toString(), |
no test coverage detected