removes deprecated Search function from deprecation code example (#130)

This commit is contained in:
Ted Sanders 2023-02-13 16:59:22 -08:00 committed by GitHub
parent c8e9ea249c
commit bc8efd3163

View File

@ -7,8 +7,6 @@ tokenizer = GPT2TokenizerFast.from_pretrained("gpt2")
docs = ["test1", "asdklgjnasdv", "banana", "lord lollipop"]
query = "apple orang asdansbdausd"
print(openai.Search.create(model="davinci", query=query, documents=docs))
def construct_context(query, document):
return "<|endoftext|>{document}\n\n---\n\nThe above passage is related to: {query}".format(