From 6bda402f503e048d77f5af7887b3fb649c977cbb Mon Sep 17 00:00:00 2001 From: tcollins Date: Wed, 23 Oct 2024 17:01:18 -0400 Subject: [PATCH] added self --- lib/galaxy/webapps/galaxy/api/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)