From c103140424c508ed4e83e0417b10ba17836207d4 Mon Sep 17 00:00:00 2001 From: Marc Fabian Mezger Date: Mon, 1 Jul 2024 17:58:51 +0200 Subject: [PATCH] refactoring. --- agent/backend/LLMStrategy.py | 10 +++++----- agent/backend/{ => services}/aleph_alpha_service.py | 0 agent/backend/{ => services}/cohere_service.py | 0 agent/backend/{ => services}/gpt4all_service.py | 0 agent/backend/{ => services}/ollama_service.py | 0 agent/backend/{ => services}/open_ai_service.py | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename agent/backend/{ => services}/aleph_alpha_service.py (100%) rename agent/backend/{ => services}/cohere_service.py (100%) rename agent/backend/{ => services}/gpt4all_service.py (100%) rename agent/backend/{ => services}/ollama_service.py (100%) rename agent/backend/{ => services}/open_ai_service.py (100%) diff --git a/agent/backend/LLMStrategy.py b/agent/backend/LLMStrategy.py index fc3d454..18ac630 100644 --- a/agent/backend/LLMStrategy.py +++ b/agent/backend/LLMStrategy.py @@ -1,12 +1,12 @@ """The Strategy Pattern for the LLM Backend.""" from typing import ClassVar -from agent.backend.aleph_alpha_service import AlephAlphaService -from agent.backend.cohere_service import CohereService -from agent.backend.gpt4all_service import GPT4AllService from agent.backend.LLMBase import LLMBase -from agent.backend.ollama_service import OllamaService -from agent.backend.open_ai_service import OpenAIService +from agent.backend.services.aleph_alpha_service import AlephAlphaService +from agent.backend.services.cohere_service import CohereService +from agent.backend.services.gpt4all_service import GPT4AllService +from agent.backend.services.ollama_service import OllamaService +from agent.backend.services.open_ai_service import OpenAIService from agent.data_model.request_data_model import LLMProvider, SearchParams diff --git a/agent/backend/aleph_alpha_service.py b/agent/backend/services/aleph_alpha_service.py similarity index 100% rename from agent/backend/aleph_alpha_service.py rename to agent/backend/services/aleph_alpha_service.py diff --git a/agent/backend/cohere_service.py b/agent/backend/services/cohere_service.py similarity index 100% rename from agent/backend/cohere_service.py rename to agent/backend/services/cohere_service.py diff --git a/agent/backend/gpt4all_service.py b/agent/backend/services/gpt4all_service.py similarity index 100% rename from agent/backend/gpt4all_service.py rename to agent/backend/services/gpt4all_service.py diff --git a/agent/backend/ollama_service.py b/agent/backend/services/ollama_service.py similarity index 100% rename from agent/backend/ollama_service.py rename to agent/backend/services/ollama_service.py diff --git a/agent/backend/open_ai_service.py b/agent/backend/services/open_ai_service.py similarity index 100% rename from agent/backend/open_ai_service.py rename to agent/backend/services/open_ai_service.py