Skip to content

Commit

Permalink
Use all params
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Feb 28, 2024
1 parent 759bd84 commit 9952e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ def gen_flashcards_from_notes(notes: str) -> List[Flashcard]:
response = openai_client.chat.completions.create(
model=prompt.params.model,
temperature=prompt.params.temperature,
max_tokens=prompt.params.max_tokens,
top_p=prompt.params.top_p,
presence_penalty=prompt.params.presence_penalty,
frequency_penalty=prompt.params.frequency_penalty,
response_format=ResponseFormat(type="json_object"),
messages=[
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def gen_study_guide_outline(topic: str) -> str:
model=prompt.params.model,
temperature=prompt.params.temperature,
max_tokens=prompt.params.max_tokens,
top_p=prompt.params.top_p,
presence_penalty=prompt.params.presence_penalty,
frequency_penalty=prompt.params.frequency_penalty,
n=1,
messages=[
dict(
Expand Down

0 comments on commit 9952e2e

Please sign in to comment.