Comments (3)
@schnerd Any idea what could be going on here?
from openai-node.
It seems like this issue has been resolved. Can now call createCompletion with prompts > 478 characters. API seems to be making changes everyday...
from openai-node.
You've hit the token limit. It is 4096 tokens including both the prompt and completion. Here your completion is set up-to 4000, and that means your prompt have to less than 96 tokens.
from openai-node.
Related Issues (20)
- Openai.beta.threads.messages.create give "Unknown parameter: 'role'" HOT 2
- TypeError: getDefaultAgent is not a function HOT 5
- Client-side URL sanitation in the SDK can be bypassed using prototype pollution HOT 1
- Bug Report: `openai.files.create` Method Hangs and Does Not Throw Errors in Docker Containers HOT 2
- Allow to create `OpenAI` client without specifying apiKey or to be defined as an environment variable. HOT 1
- Property 'text' does not exist on type 'MessageContent' HOT 2
- thread_id not recognized from Thread object HOT 5
- Can't build NextJS project with openai library. Getting: Type error: Private identifiers are only available when targeting ECMAScript 2015 and higher. HOT 5
- extra_body parameter support HOT 1
- Vector Store File CreateAndPoll with empty file, last_error.code returned is "invalid_file" but TS say not exist. HOT 1
- Arrays for model names
- OpenAIError: Final run has not been received HOT 1
- Stop using polyfills for Node.js HOT 5
- `openai.files.content` returns raw Response object
- Getting `Unhandled Rejection` event, randomly. HOT 3
- JSONSchema does not support recursive refs & zod also fails to convert similar schemas to JSONSchema correctly HOT 10
- Difficulty in importing { zodResponseFormat } from https://deno.land HOT 7
- `batches.list()` doesn't iterate properly with Azure OpenAI HOT 6
- Zod => JSONSchema conversion creates references to unknown definitions HOT 7
- Structured Outputs fail with gpt4o when Zod schema includes pattern
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openai-node.