(model, task, apiKey, stream4, body, requestOptions = {}, fetchFn = fetch)
| 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(), |
| 78901 | fetchOptions: Object.assign(Object.assign({}, buildFetchOptions(requestOptions)), { method: "POST", headers: await getHeaders(url2), body }) |
| 78902 | }; |
| 78903 | } |
| 78904 | async function makeModelRequest(model, task, apiKey, stream4, body, requestOptions = {}, fetchFn = fetch) { |
no test coverage detected