Skip to content

📅 feat: Support text/calendar (iCalendar) in Code Outputs#12758

Merged
danny-avila merged 1 commit into
danny-avila:devfrom
upman:upstream/feat/ical-code-interpreter
Apr 22, 2026
Merged

📅 feat: Support text/calendar (iCalendar) in Code Outputs#12758
danny-avila merged 1 commit into
danny-avila:devfrom
upman:upstream/feat/ical-code-interpreter

Conversation

@upman

@upman upman commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

The code interpreter can produce iCalendar files (.ics), but they're currently rejected by the MIME allowlists and not mapped in codeTypeMapping, so they never surface as downloadable attachments. This PR registers text/calendar across fullMimeTypesList, codeInterpreterMimeTypesList, and the textMimeTypes regex, and maps .ics / .ical / .ifb / .icalendar in codeTypeMapping.

Single-file change: packages/data-provider/src/file-config.ts.

Change Type

  • New feature (non-breaking change which adds functionality)

Testing

Test Configuration

  • Code interpreter enabled; asked the model to emit an .ics file.

Before the change, the file was dropped by the MIME allowlist and never surfaced. After the change, the .ics file is accepted as a valid code-interpreter output, is rendered as a downloadable attachment, and opens correctly in standard calendar clients.

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • My changes do not introduce new warnings

Registers text/calendar across the MIME allowlists (fullMimeTypesList,
codeInterpreterMimeTypesList, textMimeTypes regex) and maps the .ics,
.ical, .ifb, .icalendar extensions in codeTypeMapping, so iCalendar
files produced by the code interpreter are accepted as valid output
and rendered as downloadable attachments.
@danny-avila danny-avila changed the base branch from main to dev April 21, 2026 14:36
@danny-avila danny-avila changed the title feat: support text/calendar (iCalendar) in code-interpreter outputs feat: support text/calendar (iCalendar) in code outputs Apr 22, 2026
@danny-avila danny-avila changed the title feat: support text/calendar (iCalendar) in code outputs 📅 feat: Support text/calendar (iCalendar) in Code Outputs Apr 22, 2026
@danny-avila danny-avila merged commit 24d32f2 into danny-avila:dev Apr 22, 2026
13 checks passed
jcbartle pushed a commit to jcbartle/LibreChat that referenced this pull request May 11, 2026
…ila#12758)

Registers text/calendar across the MIME allowlists (fullMimeTypesList,
codeInterpreterMimeTypesList, textMimeTypes regex) and maps the .ics,
.ical, .ifb, .icalendar extensions in codeTypeMapping, so iCalendar
files produced by the code interpreter are accepted as valid output
and rendered as downloadable attachments.
vlasmo pushed a commit to fdj-united/Fdj-LibreChat that referenced this pull request May 28, 2026
…ila#12758)

Registers text/calendar across the MIME allowlists (fullMimeTypesList,
codeInterpreterMimeTypesList, textMimeTypes regex) and maps the .ics,
.ical, .ifb, .icalendar extensions in codeTypeMapping, so iCalendar
files produced by the code interpreter are accepted as valid output
and rendered as downloadable attachments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants