MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / openai-embeddings.test.ts

File openai-embeddings.test.ts

tests/openai-embeddings.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
2import { OpenAIEmbeddingProvider } from '../src/embeddings/openai.js';
3
4function makeFetchResponse(body: unknown, ok = true, status = 200) {

Callers

nothing calls this directly

Calls 5

makeFetchResponseFunction · 0.85
initializeMethod · 0.65
isReadyMethod · 0.65
embedBatchMethod · 0.65
embedMethod · 0.65

Tested by

no test coverage detected