Skip to content

Commit

Permalink
feat: update openai
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Oct 12, 2024
1 parent 48d2a78 commit 038abfa
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 70 deletions.
2 changes: 1 addition & 1 deletion openai-types/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export declare class APIPromise<T> extends Promise<WithRequestID<T>> {
private parseResponse;
private parsedPromise;
constructor(responsePromise: Promise<APIResponseProps>, parseResponse?: (props: APIResponseProps) => PromiseOrValue<WithRequestID<T>>);
_thenUnwrap<U>(transform: (data: T) => U): APIPromise<U>;
_thenUnwrap<U>(transform: (data: T, props: APIResponseProps) => U): APIPromise<U>;
/**
* Gets the raw `Response` instance instead of parsing the response
* data.
Expand Down
21 changes: 21 additions & 0 deletions openai-types/internal/decoders/line.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
/**
* A re-implementation of httpx's `LineDecoder` in Python that handles incrementally
* reading lines from text.
*
* https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258
*/
export declare class LineDecoder {
static NEWLINE_CHARS: Set<string>;
static NEWLINE_REGEXP: RegExp;
buffer: string[];
trailingCR: boolean;
textDecoder: any;
constructor();
decode(chunk: Bytes): string[];
decodeText(bytes: Bytes): string;
flush(): string[];
}
export {};
//# sourceMappingURL=line.d.ts.map
2 changes: 1 addition & 1 deletion openai-types/version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const VERSION = "4.67.1";
export declare const VERSION = "4.67.3";
//# sourceMappingURL=version.d.ts.map
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"@dexaai/eslint-config": "^1.3.0",
"eslint": "^8.57.0",
"np": "^10.0.7",
"openai": "^4.67.1",
"openai": "^4.67.3",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit 038abfa

Please sign in to comment.