Skip to content

Commit

Permalink
fix openai example code error (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-lc authored Oct 29, 2024
1 parent 7a4350f commit 415f86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/openai.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pipe = Pipeline()

pipe.add_component("retriever", InMemoryBM25Retriever(document_store=docstore))
pipe.add_component("prompt_builder", PromptBuilder(template=template))
pipe.add_component("llm", OpenAIGenerator(api_key=Secret.from_token("YOUR_OPENAI_API_KEY"))
pipe.add_component("llm", OpenAIGenerator(api_key=Secret.from_token("YOUR_OPENAI_API_KEY")))
pipe.connect("retriever", "prompt_builder.documents")
pipe.connect("prompt_builder", "llm")

Expand Down

0 comments on commit 415f86c

Please sign in to comment.