format codebase with prettier
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
import Anthropic from '@anthropic-ai/sdk';
|
||||
import { AIProvider, AIContext, AIResponse } from '../services/interfaces';
|
||||
import Anthropic from "@anthropic-ai/sdk";
|
||||
import { AIProvider, AIContext, AIResponse } from "../services/interfaces";
|
||||
|
||||
export class ClaudeAdapter implements AIProvider {
|
||||
private client: Anthropic;
|
||||
private model: string;
|
||||
|
||||
constructor(apiKey?: string, model: string = 'claude-3-haiku-20240307') {
|
||||
constructor(apiKey?: string, model: string = "claude-3-haiku-20240307") {
|
||||
this.client = new Anthropic({
|
||||
apiKey: apiKey || process.env.ANTHROPIC_API_KEY,
|
||||
});
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
async processMessage(message: string, context: AIContext): Promise<AIResponse> {
|
||||
throw new Error('Not implemented');
|
||||
async processMessage(
|
||||
message: string,
|
||||
context: AIContext,
|
||||
): Promise<AIResponse> {
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user