Skip to content

Commit

Permalink
Merge pull request openai#39 from ggdupont/fix/typo_search_example
Browse files Browse the repository at this point in the history
Fixing typo in parameters usage
  • Loading branch information
ted-at-openai committed Dec 6, 2022
2 parents 2072d1a + 6b6e632 commit 5e66437
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_score(context, query, log_probs, text_offsets) -> float:

def search(query, documents, engine):

prompts = [construct_context(query, doc) for doc in [""] + docs]
prompts = [construct_context(query, doc) for doc in [""] + documents]

resps = openai.Completion.create(
model=engine,
Expand Down

0 comments on commit 5e66437

Please sign in to comment.