Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 2 years ago
0
Follow
is there a model that can output more
is there a model that can output more
Inactive
0
Follow
d
dx31
2 years ago
Β·
is there a model that can output more than 512 tokens? im trying to summarize huge docs and it seems to be defaulting to 512 tokens (i want the token output to be around 2000)
b
d
4 comments
Share
Open in Discord
b
bbornsztein
2 years ago
You can configure the max_tokens parameter:
https://langchain.readthedocs.io/en/latest/_modules/langchain/llms/openai.html?highlight=max_tokens#
Plain Text
Copy
llm = OpenAI(max_tokens=2000)
d
dx31
2 years ago
I've tried this and it doesn't work.
b
bbornsztein
2 years ago
See here:
https://gpt-index.readthedocs.io/en/latest/how_to/custom_llms.html#example-fine-grained-control-over-all-parameters
b
bbornsztein
2 years ago
is that what you tried?
Add a reply
Sign up and join the conversation on Discord
Join on Discord