diff --git a/lib/galaxy/webapps/galaxy/api/chat.py b/lib/galaxy/webapps/galaxy/api/chat.py index eae9f81ce573..b38d5749a616 100644 --- a/lib/galaxy/webapps/galaxy/api/chat.py +++ b/lib/galaxy/webapps/galaxy/api/chat.py @@ -67,7 +67,7 @@ def query(self, query: ChatPayload, trans: ProvidesUserContext = DependsOnTrans) log.debug(f"CHATGPTmessages: {messages}") response = openai.chat.completions.create( - model= config.openai_chat_model, + model=self.config.openai_chat_model, messages=messages, ) print(response)