Skip to content

Commit ec09a79

Browse files
YangSen-qnYangSen-qn
and
YangSen-qn
authored
Fit gpt (#23)
* fix: get url auth * chore: version to 1.2.1 * fix: ruff * fit gpt --------- Co-authored-by: YangSen-qn <yangsen@qiniu.com>
1 parent 58325ea commit ec09a79

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v1.2.2
2+
- 适配 GPT 4 大模型
3+
14
# v1.2.1
25
- 处理多媒体签名问题
36

src/mcp_server/core/cdn/tools.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,7 @@ def prefetch_urls(self, **kwargs) -> list[types.TextContent]:
106106
"maxItems": 10,
107107
"description": "List of directory patterns to refresh (max 10 items). Must end with '/' or '/*' to indicate directory scope",
108108
},
109-
},
110-
"anyOf": [ # 至少有一个是非空数组
111-
{
112-
"required": ["urls"],
113-
"properties": {"urls": {"not": {"maxItems": 0}}},
114-
},
115-
{
116-
"required": ["dirs"],
117-
"properties": {"dirs": {"not": {"maxItems": 0}}},
118-
},
119-
],
109+
}
120110
},
121111
)
122112
)

src/mcp_server/core/media_processing/tools.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ def image_scale_by_percent(
9898
"minimum": 1
9999
},
100100
},
101-
"required": ["object_url"],
102-
"anyOf": [
103-
{"required": ["width"]},
104-
{"required": ["height"]}
105-
]
101+
"required": ["object_url"]
106102
},
107103
)
108104
)
@@ -162,10 +158,6 @@ def image_scale_by_size(
162158
},
163159
},
164160
"required": ["object_url"],
165-
"anyOf": [
166-
{"required": ["radius_x"]},
167-
{"required": ["radius_y"]}
168-
]
169161
}
170162
)
171163
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
VERSION = '1.2.1'
2+
VERSION = '1.2.2'

0 commit comments

Comments
 (0)