mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-04 06:00:33 +00:00
removes deprecated Search function from deprecation code example (#130)
This commit is contained in:
parent
c8e9ea249c
commit
bc8efd3163
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user