Skip to content

Commit

Permalink
add temperature setting
Browse files Browse the repository at this point in the history
  • Loading branch information
lwaekfjlk committed Nov 11, 2023
1 parent 4ae7ef5 commit dfdcde9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sotopia/generation_utils/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ async def agenerate_env_profile(
model_name: LLM_Name,
inspiration_prompt: str = "asking my boyfriend to stop being friends with his ex",
examples: str = "",
temperature: float = 0.7,
) -> tuple[EnvironmentProfile, str]:
"""
Using langchain to generate the background
Expand All @@ -432,6 +433,7 @@ async def agenerate_env_profile(
examples=examples,
),
output_parser=PydanticOutputParser(pydantic_object=EnvironmentProfile),
temperature=temperature,
)


Expand Down

0 comments on commit dfdcde9

Please sign in to comment.