Skip to content

Commit

Permalink
Merge pull request #95 from dsinghvi/dsinghvi/fix-compile
Browse files Browse the repository at this point in the history
🌿 fix compile
  • Loading branch information
billytrend-cohere authored Nov 3, 2023
2 parents c099c9d + 8286ece commit 6dce0c1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/core/streaming-fetcher/StreamingFetcher.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { default as URLSearchParams } from "@ungap/url-search-params";
import axios, { AxiosAdapter, AxiosResponse } from "axios";
import qs from "qs";
import { Readable } from "stream";

export type StreamingFetchFunction<T> = (args: StreamingFetcher.Args<T>) => Promise<Stream<T>>;
Expand All @@ -9,7 +9,7 @@ export declare namespace StreamingFetcher {
url: string;
method: string;
headers?: Record<string, string | undefined>;
queryParameters?: Record<string, string>;
queryParameters?: URLSearchParams;
body?: unknown;
timeoutMs?: number;
withCredentials?: boolean;
Expand Down Expand Up @@ -41,9 +41,6 @@ export async function streamingFetcher<T>(args: StreamingFetcher.Args<T>): Promi
const response = await axios({
url: args.url,
params: args.queryParameters,
paramsSerializer: (params) => {
return qs.stringify(params);
},
method: args.method,
headers,
data: args.body,
Expand Down

0 comments on commit 6dce0c1

Please sign in to comment.