Skip to content

Commit b33ef0e

Browse files
committed
move import to top of file
1 parent 125bb66 commit b33ef0e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ldai/providers/ai_provider.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import Any, Dict, List, Optional, Union
55

66
from ldai.models import AIConfigKind, LDMessage
7-
from ldai.providers.types import ChatResponse, StructuredResponse
7+
from ldai.providers.types import ChatResponse, LDAIMetrics, StructuredResponse
88

99

1010
class AIProvider(ABC):
@@ -42,9 +42,6 @@ async def invoke_model(self, messages: List[LDMessage]) -> ChatResponse:
4242
if self.logger:
4343
self.logger.warn('invokeModel not implemented by this provider')
4444

45-
from ldai.models import LDMessage
46-
from ldai.providers.types import LDAIMetrics
47-
4845
return ChatResponse(
4946
message=LDMessage(role='assistant', content=''),
5047
metrics=LDAIMetrics(success=False, usage=None),
@@ -71,8 +68,6 @@ async def invoke_structured_model(
7168
if self.logger:
7269
self.logger.warn('invokeStructuredModel not implemented by this provider')
7370

74-
from ldai.providers.types import LDAIMetrics
75-
7671
return StructuredResponse(
7772
data={},
7873
raw_response='',

0 commit comments

Comments
 (0)