MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / callEmbeddingApi

Method callEmbeddingApi

src/providers/pythonCompletion.ts:411–416  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

409 }
410
411 async callEmbeddingApi(prompt: string): Promise<ProviderEmbeddingResponse> {
412 if (!this.isInitialized) {
413 await this.initialize();
414 }
415 return this.executePythonScript(prompt, undefined, 'call_embedding_api');
416 }
417
418 async callClassificationApi(prompt: string): Promise<ProviderClassificationResponse> {
419 if (!this.isInitialized) {

Callers

nothing calls this directly

Calls 2

initializeMethod · 0.95
executePythonScriptMethod · 0.95

Tested by

no test coverage detected