Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import { fileTypes, getFileType } from '../kinds';
describe('getFileType', () => {
it('matches exact, partial, spreadsheet and category types', () => {
expect(getFileType('application/pdf').title).toBe('Document');
expect(getFileType('text/x-python').title).toBe('Code');
expect(
getFileType('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet').title,
).toBe('Spreadsheet');
expect(getFileType('audio/mpeg').fillClassName).toBe('fill-file-audio');
});
it('falls back to a generic file', () => {
expect(getFileType('application/octet-stream')).toBe(fileTypes.file);
expect(getFileType()).toBe(fileTypes.text);
});
});