transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
https://agentic.so
MIT License
16.22k stars 2.12k forks source link

Incorrent value of maxModelTokens for gpt-3.5-turbo #566

Closed yaojingguo closed 3 months ago

yaojingguo commented 1 year ago

Verify latest release

Verify webapp is working

Environment details

node version: v16.16.0 macOS 12.4

Describe the Bug

https://github.com/transitive-bullshit/chatgpt-api/blob/main/src/chatgpt-api.ts#L60 sets maxModelTokens = 4000. But gpt-3.5-turbo max tokens setting is 4096.

Should we set maxModelTokens to 4096?

transitive-bullshit commented 3 months ago

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.