Merge pull request #39 from ggdupont/fix/typo_search_example

Fixing typo in parameters usage
This commit is contained in:
Ted Sanders 2022-12-06 12:39:06 -08:00 committed by GitHub
commit 5e66437686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,