Skip to content

Commit baa1ddd

Browse files
committed
Correct the prefix issue with index and remove redundant comments.
1 parent d522560 commit baa1ddd

File tree

4 files changed

+2
-35
lines changed

4 files changed

+2
-35
lines changed

examples/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Alipay.com Inc.
4-
Copyright (c) 2004-2023 All Rights Reserved.
5-
------------------------------------------------------
6-
File Name : __init__.py.py
7-
Author : fuhui.phe
8-
Create Time : 2024/5/22 11:03
9-
Description : description what the main function of this file
10-
Change Activity:
11-
version0 : 2024/5/22 11:03 by fuhui.phe init
12-
"""

examples/flask/llms_cache/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Alipay.com Inc.
4-
Copyright (c) 2004-2023 All Rights Reserved.
5-
------------------------------------------------------
6-
File Name : __init__.py.py
7-
Author : fuhui.phe
8-
Create Time : 2024/5/22 10:28
9-
Description : description what the main function of this file
10-
Change Activity:
11-
version0 : 2024/5/22 10:28 by fuhui.phe init
12-
"""
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Alipay.com Inc.
4-
Copyright (c) 2004-2023 All Rights Reserved.
5-
------------------------------------------------------
6-
File Name : __init__.py.py
7-
Author : fuhui.phe
8-
Create Time : 2024/5/22 10:29
9-
Description : description what the main function of this file
10-
Change Activity:
11-
version0 : 2024/5/22 10:29 by fuhui.phe init
12-
"""

modelcache_mm/utils/index_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def get_index_name(model):
5-
return 'modelcache' + '_' + model
5+
return 'multicache' + '_' + model
66

77

88
def get_index_prefix(model):
@@ -18,7 +18,7 @@ def get_mm_index_name(model, mm_type):
1818
mm_type = 'image'
1919
elif mm_type == 'TEXT':
2020
mm_type = 'text'
21-
return 'llms_cache' + '_' + model + '_' + mm_type
21+
return 'multi_cache' + '_' + model + '_' + mm_type
2222

2323

2424
def get_mm_index_prefix(model, mm_type):

0 commit comments

Comments
 (0)