From d90ccce7488eee785f5990da3fe92b0dc88b2c5e Mon Sep 17 00:00:00 2001 From: luiz Date: Sun, 12 Nov 2023 13:43:01 +0100 Subject: [PATCH] update piece --- pieces/TextTaggingPiece/piece.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pieces/TextTaggingPiece/piece.py b/pieces/TextTaggingPiece/piece.py index 4fe3f02..90b637e 100644 --- a/pieces/TextTaggingPiece/piece.py +++ b/pieces/TextTaggingPiece/piece.py @@ -42,6 +42,7 @@ def piece_function(self, input_data: InputModel, secrets_data: SecretsModel): llm = ChatOpenAI( model=model, temperature=temperature, + api_key=secrets_data.OPENAI_API_KEY ) chain = create_tagging_chain( schema=schema,