openai-node
openai-node copied to clipboard
Official JavaScript / TypeScript library for the OpenAI API
### Describe the bug If I try calling the OpenAI API with openai.createImage and my request is malformed, I just get a generic "request failed with status code 400". If...
### Describe the bug Updated from v2.0.5 to 3.0.0 of the package and got 16 errors in node_modules/openai/dist/api.d.ts: [{ "resource": "PROJECT_PATH/node_modules/openai/dist/api.d.ts", "owner": "typescript", "code": "2304", "severity": 8, "message": "Cannot find...
### Describe the feature or improvement you're requesting #Working Below Code. let readStream = fs.createReadStream("image.png"); response = await openai.createImageVariation(readStream, 1, "1024x1024"); #Not Working Below Code. let readStream = https.get("https://storage.googleapis.com/inceptivestudio/1672042338704.png", (stream)...
### Describe the bug Using the function `createImageVariation` with a non square image results in the following error: ``` (node:58341) UnhandledPromiseRejectionWarning: Error: Request failed with status code 400 at createError...
### Describe the bug The typings were updated such that the signature is `createFile(file: File)`, but the [docs example](https://beta.openai.com/docs/api-reference/files/upload) shows a `ReadStream` being provided. `File` is not available in Node....
### Describe the bug Use the config below, get the unrelated content in the choices array. And put same prompt on Open AI Play ground, it returns right content ("The...
As part of a 'Pre-launch Review' we've been instructed to provide a user id as part of our completion requests: > Pass a uniqueID for every user w/ each API...
### Describe the feature or improvement you're requesting I want to break through some firewalls to access the openai api, but I don't want to affect the access speed of...
### Describe the feature or improvement you're requesting Please recommend a reliable agent in mainland China ### Additional context _No response_
### Describe the bug On 3.2.1, can't seem to find the `CreateChatCompletionResponse` type definition, even though I see it in the definitions file: https://github.com/openai/openai-node/blob/master/dist/api.d.ts#L345 No exported member detected when trying...