mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
removes deprecated Search function from deprecation code example (#130)
This commit is contained in:
parent
6b7e5f6695
commit
1b21dcd6e9
@ -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…
x
Reference in New Issue
Block a user