From 72bf6fa62fe3501380ca8221d70f4be000b549c5 Mon Sep 17 00:00:00 2001 From: Gisela Torres Date: Mon, 14 Apr 2025 08:53:38 +0200 Subject: [PATCH] Update executor.py OpenAI executor doesn't need the deployment property and it fails when you try to execute any YAML file for this type --- runtime/prompty/prompty/openai/executor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/prompty/prompty/openai/executor.py b/runtime/prompty/prompty/openai/executor.py index cf6da8a0..adcfb021 100644 --- a/runtime/prompty/prompty/openai/executor.py +++ b/runtime/prompty/prompty/openai/executor.py @@ -26,8 +26,7 @@ def __init__(self, prompty: Prompty) -> None: self.api = self.prompty.model.api self.parameters = self.prompty.model.parameters - self.model = self.prompty.model.configuration["name"] - self.deployment = self.prompty.model.configuration["deployment"] + self.model = self.prompty.model.configuration["name"] def invoke(self, data: typing.Any) -> typing.Any: """Invoke the OpenAI API