mirror of
https://github.com/openai/openai-cookbook.git
synced 2023-08-25 00:47:39 +03:00
removes deprecated Search function from deprecation code example (#130)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user