@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
10 lines (8 loc) • 466 B
text/typescript
import { OpenRouterConfig } from './config';
import { OpenRouterProviderError } from './errors';
export async function embed(config: OpenRouterConfig, text: string): Promise<number[]> {
throw new OpenRouterProviderError('Embedding is not supported by OpenRouter API');
}
export async function embedBatch(config: OpenRouterConfig, texts: string[]): Promise<number[][]> {
throw new OpenRouterProviderError('Batch embedding is not supported by OpenRouter API');
}