diff --git a/pipelines/chat-with-youtube-openai-pipeline.py b/pipelines/chat-with-youtube-openai-pipeline.py index 6deeb15..285a355 100644 --- a/pipelines/chat-with-youtube-openai-pipeline.py +++ b/pipelines/chat-with-youtube-openai-pipeline.py @@ -88,6 +88,7 @@ def get_openai_models(self): def pipe(self, user_message: str, model_id: str, messages: List[dict], body: dict): try: model = ChatOpenAI( + base_url=self.valves.OPENAI_API_BASE_URL, api_key=self.valves.OPENAI_API_KEY, model=self.valves.OPENAI_API_MODEL, temperature=self.valves.OPENAI_API_TEMPERATURE