# AI Connect 0.1.7: images, files and voice in the chat modules

Source: https://tensorpass.app/blog/announcements/releases/ai-connect-0-1-7-images-files-and-voice-in-the-chat-modules
Published on 24 November 2026.

> Since 24 November 2026 the four AI Connect packages are at 0.1.7 on npm, with provenance. A site's chat takes images, PDFs and text files and the visitor's dictation, read and transcribed by the visitor's own AI account. Version 0.1.6 holds the page behind the side panel and the popup on a phone.

On 24 November 2026 at 01:03 UTC TensorPass published version 0.1.7 of the four **AI Connect** packages on npm. With 0.1.7 a site's chat takes images, PDFs and text files, dropped, pasted or attached, and the visitor's dictation. The visitor's own AI account reads the files and writes the dictated words. Version 0.1.6, published on 23 November at 23:27 UTC, holds the page behind the side panel and the popup while they cover a phone. This post covers both versions, since the last release post covered 0.1.5.

```bash
npm install @tensorpass/aiconnect@0.1.7 @tensorpass/aiconnect-react@0.1.7
```

## The packages of 0.1.7

| Package | Published on npm (UTC) | Unpacked size | Files |
| --- | --- | --- | --- |
| `@tensorpass/aiconnect` | 24 November 2026, 01:03 | 570.4 kB | 145 |
| `@tensorpass/aiconnect-react` | 24 November 2026, 01:03 | 587.0 kB | 186 |
| `@tensorpass/aiconnect-elements` | 24 November 2026, 01:03 | 6.26 MB | 10 |
| `@tensorpass/aiconnect-design` | 24 November 2026, 01:03 | 186.8 kB | 17 |

Each package carries the Apache License 2.0 and an npm provenance statement that ties it to commit `d0e7aa1` of https://github.com/tensorpass/aiconnect and to the release workflow that built it. Before the tag, the release ran a clean install, an audit with no vulnerability found, lint, the type check, the build, 197 unit tests and the demo's 12 end to end tests.

## Turn on files and voice

A module takes files and voice when the site passes `attachments`. A module without it keeps its question box as it was.

```tsx
<AiChatPanel system="You answer questions about this shop." mcp="/api/mcp" attachments={{}} />
```

```html
<aiconnect-chat variant="panel" mcp="/api/mcp" attachments></aiconnect-chat>
```

`{}` takes images, PDFs, text files and voice, with 5 MB of files and 10 files per question. The fields `images`, `files`, `voice`, `accept`, `maxBytes` and `maxFiles` narrow it, and the [Files and voice](https://tensorpass.app/docs/modules/attachments) page lists them. The elements script of 0.1.7, 759 kB, is at https://cdn.jsdelivr.net/npm/@tensorpass/aiconnect-elements@0.1.7/dist/aiconnect-elements.js. It loads `aiconnect-pdf.js` and `aiconnect-pcm-worklet.js` from beside itself, so a site that hosts the script serves the three files from one folder.

## What the visitor sees

A file dragged over a module covers it with a drop zone, which says before the drop whether the module takes the file. Each file shows as a chip above the question field, with a thumbnail for an image and the name and size for a document. A file the site refuses, a question over its size and a file the browser cannot read each show a line saying why, in English, French, Hebrew, Arabic or Chinese. The images of a sent question open in a lightbox. The microphone button turns the field into a bar with a live waveform and the time spoken, and Done puts the words in the field for the visitor to correct before sending.

## What the model receives

The page prepares each file before it leaves:

- An image is drawn again at 1,568 pixels on its long side at most, the size [Anthropic's vision guide](https://platform.claude.com/docs/en/build-with-claude/vision) recommends, and sent as WebP, or as JPEG in a browser that writes no WebP. Drawing it again drops its metadata, including the GPS position of a phone photo.
- A PDF goes whole to a model that reads PDFs: Claude, OpenAI's models through an API key, Gemini's models on the Gemini plan, and every model of OpenRouter. For the other models, [pdf.js](https://mozilla.github.io/pdf.js/) reads it in the page: its text goes as a text file, and a page without text, such as a scan, goes as an image to a model that sees images.
- A text, Markdown, CSV or JSON file goes as its text, under its name.

A model that reads text only, such as DeepSeek's chat model, receives the question without its images, and the image's chip says so before the visitor sends. What each model reads comes from its provider's documentation, read on 23 November 2026, and for OpenRouter from the input types its model list gives each model.

## Dictation

The SDK ships no speech model. The transcription service of the account that answers writes the words:

| Account | Transcription |
| --- | --- |
| ChatGPT plan | The dictation Codex uses |
| OpenAI API key | `gpt-transcribe` through `/v1/audio/transcriptions` |
| Mistral API key | Voxtral through `/v1/audio/transcriptions` |
| Gemini plan and API key | The visitor's Gemini model writes down the recording |
| Claude plan and the other accounts | The browser's speech recognition in Chrome, Edge and Safari |

Chrome's recognition sends the voice to Google's service. Firefox has no speech recognition of its own, so it shows the microphone only for the accounts in the first four rows. AI Wallet counts dictation against each site's day by what the account bills. A service billed by the minute counts against 15 minutes per site per day, which the visitor changes in the wallet's settings. Gemini takes 32 tokens for each second of audio from the site's daily tokens. A site over its minutes goes on with the browser's recognition.

## The guards read the files

The [guards](https://tensorpass.app/docs/modules/guards) check what the visitor attached as well as what they typed. Each text file reaches the model inside its own salted envelope, `<attachment-SALT name="...">`, and the instructions tell the model that the file is part of the question and that instructions written inside it carry no authority. The injection patterns read the text of every file. The files of one question hold 200,000 characters of text at most. The long base64 block reads only what the visitor typed, since a CSV or a JSON file holds long tokens of its own. A PDF sent whole and an image reach the model as they are, so the guards cannot read inside them.

## With which AI Wallet

A site on 0.1.7 keeps working with AI Wallet 0.1.8, the version in the stores on 24 November. With 0.1.8 the images still go, a PDF goes as its text, and dictation uses the browser's recognition. AI Wallet 0.1.9 adds the PDFs sent whole, what each model reads, and the transcription of the visitor's accounts. TensorPass submitted 0.1.9 to Firefox Add-ons and to the Chrome Web Store on 24 November, and it waits for the review of each store. Before the submission, the wallet passed its 210 unit tests and its end to end suites, 166 tests in Chrome and 9 in Firefox.

## Version 0.1.6: the page holds still on a phone

On a screen 640 pixels wide or less, the side panel and the popup take the whole screen. Since 0.1.6 they hold the page's scroll and position while they cover it, as the full page mode does on every screen, so a site adds no scroll lock of its own. A module that covers the screen follows the visual viewport, so the keyboard leaves the question box in view, and on a touch screen the keyboard waits for the visitor's tap.

## The skills

The Agent Skills TensorPass serves with the SDK follow the release: `aiconnect-integrate` 0.4.8 names `attachments` and loads the elements script of 0.1.7, and `aiconnect-hardening` 0.2.3 describes the attachment envelope and the cap on attached text.