mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-19 15:25:37 +00:00
Merge pull request #39 from ggdupont/fix/typo_search_example
Fixing typo in parameters usage
This commit is contained in:
commit
5e66437686
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user