chore: prepare GoodBuddy 0.8.5

This commit is contained in:
lofyer
2026-08-07 10:45:01 +08:00
parent e20cb447af
commit 17e66a3369
54 changed files with 1306 additions and 1640 deletions
+4 -8
View File
@@ -7,14 +7,10 @@ const safeEndpointSchema = z
.url()
.trim()
.max(2_048)
.refine((value) => {
const url = new URL(value)
return (
['http:', 'https:'].includes(url.protocol) &&
!url.username &&
!url.password
)
}, 'endpoint must be an HTTP URL without credentials')
.refine(
(value) => ['http:', 'https:'].includes(new URL(value).protocol),
'endpoint must be an HTTP or HTTPS URL'
)
export const embeddingErrorCodeSchema = z.enum([
'model_not_found',