char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Cristiano Pintoui: mask API Key field in settings and error splash to stop browser a… (#26562)ece963f41

char/aliceai-t5-moe
460 B12 linesraw
1import { SETTINGS_CHAT_SECTIONS, SETTINGS_KEYS } from '$lib/constants';
2import { describe, expect, it } from 'vitest';
3
4describe('checkApiKeyField', () => {
5	it('should have isPrivate set to true', () => {
6		const fields = SETTINGS_CHAT_SECTIONS.flatMap((section) => section.fields);
7		const apiKeyField = fields.find((field) => field?.key === SETTINGS_KEYS.API_KEY);
8
9		expect(apiKeyField).toBeDefined();
10		expect(apiKeyField?.isPrivate).toBe(true);
11	});
12});