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
@@ -156,14 +156,14 @@ describe('OpenAIEmbeddingClient', () => {
expect(delayedTransport).toHaveBeenCalledTimes(1)
})
it('rejects unsafe endpoints and malformed vectors', async () => {
it('accepts credentials and still rejects malformed vectors', async () => {
expect(
() =>
new OpenAIEmbeddingClient({
endpoint: 'https://user:secret@vectors.example/embeddings',
endpoint: 'http://user:password@10.0.0.25/embeddings?format=float',
model: 'model'
})
).toThrow('must not contain credentials')
).not.toThrow()
const malformed = new OpenAIEmbeddingClient({
endpoint: 'https://vectors.example/v1/embeddings',