diff --git a/backend/modules/brain/composite_brain_qa.py b/backend/modules/brain/composite_brain_qa.py index d73ab0140..643a3caa6 100644 --- a/backend/modules/brain/composite_brain_qa.py +++ b/backend/modules/brain/composite_brain_qa.py @@ -94,7 +94,6 @@ class CompositeBrainQA( return KnowledgeBrainQA( brain_id=str(brain.id), chat_id=self.chat_id, - model=self.model, max_tokens=self.max_tokens, temperature=self.temperature, streaming=self.streaming, diff --git a/backend/modules/brain/knowledge_brain_qa.py b/backend/modules/brain/knowledge_brain_qa.py index 3dfc1619f..39afdb6a4 100644 --- a/backend/modules/brain/knowledge_brain_qa.py +++ b/backend/modules/brain/knowledge_brain_qa.py @@ -177,7 +177,7 @@ class KnowledgeBrainQA(BaseModel, QAInterface): self.models_settings = self.user_usage.get_model_settings() self.increase_usage_user() self.knowledge_qa = QuivrRAG( - model=self.brain.model, + model=self.brain.model if self.brain.model else self.model, brain_id=brain_id, chat_id=chat_id, streaming=streaming, diff --git a/backend/modules/brain/repository/brains_users.py b/backend/modules/brain/repository/brains_users.py index 602d7fccd..20be77d61 100644 --- a/backend/modules/brain/repository/brains_users.py +++ b/backend/modules/brain/repository/brains_users.py @@ -45,17 +45,12 @@ class BrainsUsers(BrainsUsersInterface): for item in response.data: integration_logo_url = "" if item["brains"]["brain_type"] == "integration": - logger.info("Integration brain") - logger.info(item["brains"]) if "integrations_user" in item["brains"]: for integration_user in item["brains"]["integrations_user"]: if "integrations" in integration_user: integration_logo_url = integration_user["integrations"][ "integration_logo_url" ] - logger.info( - "Integration logo url: " + str(integration_logo_url) - ) user_brains.append( MinimalUserBrainEntity( diff --git a/backend/modules/chat/controller/chat/brainful_chat.py b/backend/modules/chat/controller/chat/brainful_chat.py index eb85ba6a8..70c0b3b3c 100644 --- a/backend/modules/chat/controller/chat/brainful_chat.py +++ b/backend/modules/chat/controller/chat/brainful_chat.py @@ -81,7 +81,6 @@ class BrainfulChat(ChatInterface): ) return APIBrainQA( chat_id=chat_id, - model=model, temperature=temperature, brain_id=str(brain.brain_id), streaming=streaming, @@ -104,7 +103,6 @@ class BrainfulChat(ChatInterface): if integration_class: return integration_class( chat_id=chat_id, - model=model, temperature=temperature, brain_id=str(brain.brain_id), streaming=streaming,