Skip to content

Examples and guides for using the OpenAI API

Fixing typo in parameters usage

ggdupont6b6e6323e4b6
diff --git a/transition_guides_for_deprecated_API_endpoints/search_functionality_example.py b/transition_guides_for_deprecated_API_endpoints/search_functionality_example.py
index 15894354..0760844a 100644
--- a/transition_guides_for_deprecated_API_endpoints/search_functionality_example.py
+++ b/transition_guides_for_deprecated_API_endpoints/search_functionality_example.py
@@ -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,