Skip to content

Commit

Permalink
Linting test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Oct 16, 2024
1 parent 20bd156 commit 7b6cdb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chatapi/src/utils/chat-helpers.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import {
} from './chat-assistant.utils';
import { extractTextFromDocument } from './text-extraction.utils';

// const getProviders = async () => await initializeProviderModels();

/**
* Uses geminis's multimodal endpoint to generate chat completions
* @param messages - Array of chat messages
Expand All @@ -33,7 +31,7 @@ async function handleGemini(

const geminiMessages: GeminiMessage[] = messages.map((message) => ({
'role': message.role === 'assistant' ? 'model' : message.role,
'parts': [{ 'text': message.content }],
'parts': [ { 'text': message.content }],
}));

geminiMessages.pop();
Expand Down

0 comments on commit 7b6cdb7

Please sign in to comment.