Skip to content

Commit 5ea311e

Browse files
committed
refactored out the S3_DB__Base and couple more classes
1 parent 88c0223 commit 5ea311e

11 files changed

+48
-357
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from osbot_utils.base_classes.Type_Safe import Type_Safe
22

3+
DEFAULT__SERVER_CONFIG__SERVER_NAME = 'osbot-llms'
34

45
class OSBot_LLMs__Server_Config(Type_Safe): # todo: add workflow to load this from a json/toml config file
56
s3_log_requests : bool = False
6-
server_name : str = 'osbot-llms'
7+
server_name : str = DEFAULT__SERVER_CONFIG__SERVER_NAME
78
s3_s3_use_minio : bool = True
89

910
osbot_llms__server_config = OSBot_LLMs__Server_Config()

osbot_llms/backend/s3_minio/S3_DB_Base.py

Lines changed: 0 additions & 193 deletions
This file was deleted.

osbot_llms/backend/s3_minio/S3_DB_Base__Disabled.py

Lines changed: 0 additions & 84 deletions
This file was deleted.

osbot_llms/backend/s3_minio/S3_DB__Chat_Threads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
from osbot_aws.aws.s3.S3__DB_Base import S3__DB_Base
12
from osbot_utils.utils.Misc import timestamp_utc_now
23
from osbot_utils.utils.Status import status_ok, status_error
3-
from osbot_llms.backend.s3_minio.S3_DB_Base import S3_DB_Base
44
from osbot_llms.backend.s3_minio.S3__Key__Chat_Thread import S3__Key__Chat_Thread
55
from osbot_llms.models.LLMs__Chat_Completion import LLMs__Chat_Completion
66

@@ -10,7 +10,7 @@
1010
CHAT__REQUEST_TYPE__LLM_REQUEST = 'llm-request'
1111
CHAT__REQUEST_TYPE__LLM_RESPONSE = 'llm-response'
1212

13-
class S3_DB__Chat_Threads(S3_DB_Base):
13+
class S3_DB__Chat_Threads(S3__DB_Base):
1414
bucket_name__suffix : str = S3_BUCKET_SUFFIX__CHAT_THREADS
1515
save_as_gz : bool = True
1616
s3_key_generator : S3__Key__Chat_Thread

osbot_llms/testing/TestCase__S3_Minio__Temp_Chat_Threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from unittest import TestCase
2+
from osbot_aws.aws.s3.S3__DB_Base import ENV_NAME__USE_MINIO_AS_S3
23
from osbot_aws.testing.Temp__Random__AWS_Credentials import Temp__Random__AWS_Credentials
34
from osbot_utils.helpers.Random_Guid import Random_Guid
45
from osbot_llms.OSBot_LLMs__Server_Config import osbot_llms__server_config
56
from osbot_llms.OSBot_LLMs__Shared_Objects import osbot_llms__shared_objects
6-
from osbot_llms.backend.s3_minio.S3_DB_Base import ENV_NAME__USE_MINIO_AS_S3
77
from osbot_llms.models.LLMs__Chat_Completion import LLMs__Chat_Completion
88

99

osbot_llms/testing/TestCase__S3_Minio__Temp_S3_Bucket.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)