danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
17.87k stars 2.96k forks source link

Enhancement: Support for C# files #4056

Closed Nevrai closed 2 weeks ago

Nevrai commented 2 weeks ago

What features would you like to see added?

I was quite disappointed with the lack of support for C# files (.cs), as I wanted to use LibreChat for C# programming.

Is there a way to get around this, without manually converting each file to text? ChatGPT and Claude.ai both support C# files, so it's a shame that LibreChat doesn’t. I’m very impressed with LibreChat so far, but I would definitely love support for C# file attachments to be implemented, and I doubt I’m the only one who feels that way.

More details

When attempting to attach a C# file: image

LibreChat version: LibreChat v0.7.5-rc2

Which components are impacted by your request?

General, UI

Pictures

No response

Code of Conduct

danny-avila commented 2 weeks ago

It shouldn't be a shame because we can add it :)

danny-avila commented 2 weeks ago

And technically, looking at the code, this is meant to be supported already, but the mimetype is a mismatch:

  c: 'text/x-c',
  cs: 'text/x-csharp',
  cpp: 'text/x-c++',
Nevrai commented 5 days ago

Thank you!