Skip to content

Commit 415f86c

Browse files
authored
fix openai example code error (#283)
1 parent 7a4350f commit 415f86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integrations/openai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pipe = Pipeline()
105105

106106
pipe.add_component("retriever", InMemoryBM25Retriever(document_store=docstore))
107107
pipe.add_component("prompt_builder", PromptBuilder(template=template))
108-
pipe.add_component("llm", OpenAIGenerator(api_key=Secret.from_token("YOUR_OPENAI_API_KEY"))
108+
pipe.add_component("llm", OpenAIGenerator(api_key=Secret.from_token("YOUR_OPENAI_API_KEY")))
109109
pipe.connect("retriever", "prompt_builder.documents")
110110
pipe.connect("prompt_builder", "llm")
111111

0 commit comments

Comments
 (0)