Devin AI d97bc43f5d fix: convert to type imports and fix unused parameter
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:07:27 +00:00

17 lines
445 B
TypeScript

import { LLMClient, LLMClientConfig } from '../../../utils/llm-client';
export class MockLLMClient implements LLMClient {
constructor(private mockResponse: string = '{"queries": ["test query"]}') {}
getGenerativeModel(config: LLMClientConfig) {
return {
generateContent: async () => ({
response: {
text: () => this.mockResponse,
usageMetadata: { totalTokenCount: 100 }
}
})
};
}
}