Skip to content

Commit

Permalink
increase default GPT_MAX_TOKENS to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
phelps-sg committed Nov 13, 2023
1 parent d69ccc5 commit 8108e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ To override default parameters use the following shell environment variables:
~~~bash
export GPT_MODEL=gpt-3.5-turbo
export GPT_TEMPERATURE=0.2
export GPT_MAX_TOKENS=100
export GPT_MAX_TOKENS=500
export GPT_MAX_RETRIES=5
export GPT_RETRY_EXPONENT_SECONDS=2
export GPT_RETRY_BASE_SECONDS=20
Expand Down
2 changes: 1 addition & 1 deletion src/openai_pygenerator/openai_pygenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def var(name: str, to_type: Callable[[str], T], default: T) -> T:

GPT_MODEL = var("GPT_MODEL", str, "gpt-3.5-turbo")
GPT_TEMPERATURE = var("GPT_TEMPERATURE", float, 0.2)
GPT_MAX_TOKENS = var("GPT_MAX_TOKENS", int, 100)
GPT_MAX_TOKENS = var("GPT_MAX_TOKENS", int, 500)
GPT_MAX_RETRIES = var("GPT_MAX_RETRIES", int, 5)
GPT_RETRY_EXPONENT_SECONDS = Seconds(var("GPT_RETRY_EXPONENT_SECONDS", int, 2))
GPT_RETRY_BASE_SECONDS = Seconds(var("GPT_RETRY_BASE_SECONDS", int, 20))
Expand Down

0 comments on commit 8108e3f

Please sign in to comment.