ciyidogan commited on
Commit
8b47d7f
·
verified ·
1 Parent(s): c3aae5d

Delete llm_interface.py

Browse files
Files changed (1) hide show
  1. llm_interface.py +0 -35
llm_interface.py DELETED
@@ -1,35 +0,0 @@
1
- """
2
- LLM Provider Interface for Flare
3
- """
4
- import os
5
- from abc import ABC, abstractmethod
6
- from typing import Dict, List, Optional, Any
7
-
8
- class LLMInterface(ABC):
9
- """Abstract base class for LLM providers"""
10
-
11
- def __init__(self, settings: Dict[str, Any] = None):
12
- """Initialize with provider settings"""
13
- self.settings = settings or {}
14
- self.internal_prompt = self.settings.get("internal_prompt", "")
15
- self.parameter_collection_config = self.settings.get("parameter_collection_config", {})
16
-
17
- @abstractmethod
18
- async def generate(self, system_prompt: str, user_input: str, context: List[Dict]) -> str:
19
- """Generate response from LLM"""
20
- pass
21
-
22
- @abstractmethod
23
- async def startup(self, project_config: Dict) -> bool:
24
- """Initialize LLM with project config"""
25
- pass
26
-
27
- @abstractmethod
28
- def get_provider_name(self) -> str:
29
- """Get provider name for logging"""
30
- pass
31
-
32
- @abstractmethod
33
- def get_model_info(self) -> Dict[str, Any]:
34
- """Get model information"""
35
- pass