mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 22:46:32 +00:00
style: format two ai-connections files
This commit is contained in:
@@ -117,10 +117,7 @@ function withIdleLimit(body: ReadableStream<Uint8Array>, idleMs: number): Readab
|
||||
}
|
||||
|
||||
/** The next chunk, or `provider_unavailable` when none came within `idleMs`. */
|
||||
async function readWithin(
|
||||
reader: ReadableStreamDefaultReader<Uint8Array>,
|
||||
idleMs: number,
|
||||
): Promise<ReadResult> {
|
||||
async function readWithin(reader: ReadableStreamDefaultReader<Uint8Array>, idleMs: number): Promise<ReadResult> {
|
||||
let timer: ReturnType<typeof setTimeout> | undefined;
|
||||
const idle = new Promise<never>((_, reject) => {
|
||||
timer = setTimeout(
|
||||
|
||||
@@ -207,7 +207,10 @@ describe('ModelCatalogService', () => {
|
||||
it('MCAT-009: of a capable line the newest stable model wins, whatever order the provider lists them in', () => {
|
||||
const list = (...ids: string[]) => ids.map((id) => ({ id, label: id, supportsTools: true }));
|
||||
expect(
|
||||
pickDefaultModel('gemini', list('gemini-2.5-flash', 'gemini-3-flash-preview', 'gemini-3-flash', 'gemini-2.0-flash')),
|
||||
pickDefaultModel(
|
||||
'gemini',
|
||||
list('gemini-2.5-flash', 'gemini-3-flash-preview', 'gemini-3-flash', 'gemini-2.0-flash'),
|
||||
),
|
||||
).toBe('gemini-3-flash');
|
||||
expect(pickDefaultModel('anthropic', list('claude-sonnet-4-5', 'claude-sonnet-5-5', 'claude-sonnet-5'))).toBe(
|
||||
'claude-sonnet-5-5',
|
||||
|
||||
Reference in New Issue
Block a user