Skip to content

Commit

Permalink
refactor: specify max_tokens for OpenAI language model
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoleg committed Jun 9, 2024
1 parent b18a5a5 commit fc700dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def main():
model=st.session_state.model,
callbacks=[cb],
model_kwargs={"top_p": st.session_state.top_p},
max_tokens=2048,
)
with st.spinner("Summarizing video :gear: Hang on..."):
if custom_prompt:
Expand Down

0 comments on commit fc700dc

Please sign in to comment.