[EXAMPLES FIX]

pull/268/head
Kye 1 year ago
parent b90be0c951
commit 57daf25db4

@ -50,7 +50,9 @@ api_key = os.environ.get("OPENAI_API_KEY")
# Initialize the language model
llm = OpenAIChat(
temperature=0.5,
model_name="gpt-4",
openai_api_key=api_key,
max_tokens=4000
)
@ -86,9 +88,10 @@ api_key = os.getenv("OPENAI_API_KEY")
# Initialize the language agent
llm = OpenAIChat(
openai_api_key=api_key,
temperature=0.5,
max_tokens=3000,
model_name="gpt-4",
openai_api_key=api_key,
max_tokens=4000
)

@ -15,6 +15,7 @@ api_key = os.environ.get("OPENAI_API_KEY")
# Initialize the language model
llm = OpenAIChat(
temperature=0.5,
model_name="gpt-4",
openai_api_key=api_key,
)

@ -11,10 +11,12 @@ api_key = os.getenv("OPENAI_API_KEY")
# Initialize the language agent
# Initialize the language model
llm = OpenAIChat(
openai_api_key=api_key,
temperature=0.5,
max_tokens=2000,
model_name="gpt-4",
openai_api_key=api_key,
max_tokens=4000
)

Loading…
Cancel
Save