Skip to content

Commit 90b952d

Browse files
authored
fix: 移除对API地址添加/v1的建议逻辑 (#67)
1 parent 4df1890 commit 90b952d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

usecase/modelkit.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,6 @@ func generateBaseURLFixSuggestion(errContent string, baseURL string, provider co
554554
return ""
555555
}
556556
return "建议在API地址使用宿主机主机名: " + fixedURL
557-
case consts.AddModelBaseURLErrTypeV1Path:
558-
fixedURL, err := baseURLAddV1(baseURL)
559-
if err != nil {
560-
return ""
561-
}
562-
return "建议在API地址末尾添加/v1: " + fixedURL
563557
case consts.AddModelBaseURLErrTypeSlash:
564558
fixedURL, err := baseURLReplaceSlash(baseURL)
565559
if err != nil {

0 commit comments

Comments
 (0)