Skip to content

Use Apple's on-device model for inline suggestions and the Review, Explain, Optimize and Fix actions #3611

Closed

Description

@datlechin

Problem

Every AI request goes to the active provider. The providers that keep data on the Mac, Ollama, llama.cpp and MLX, each need a server installed and started first (features/ai-assistant.mdx:42, :162). There is no option that sends nothing over the network and needs no setup.

#1048 built a Foundation Models transport for the chat and was closed on 2026-06-08. The on-device model's context window is about 4,000 tokens, and the chat's system prompt, tool schemas and tool results fill it after one or two agent turns, so generation fails with exceededContextWindowSize. The same comment found that plain chat and single-turn requests work.

Some features send one bounded request and no tools:

  • Review, Explain, Optimize and Fix send the statement and the structure of the tables it names (features/ai-assistant.mdx:115-133).
  • Inline suggestions send the text around the cursor (features/ai-assistant.mdx:145-147).

Proposed solution

  • An Apple Intelligence choice in Settings > AI for inline suggestions and the four query actions. The chat and Agent mode keep the active provider, for the reason AI Chat: Apple Intelligence transport via Foundation Models #1048 gives.
  • Offered on macOS 26 and later where SystemLanguageModel.default.availability reports the model available. Elsewhere it is listed but dimmed with the reason: the Mac is not eligible, Apple Intelligence is off, or the model is still downloading. TablePro's macOS 13 minimum stays.
  • Measure the request before sending it. When the statement and table structure do not fit, keep only the columns the statement uses, and when it still does not fit, say so and offer the active provider instead of failing mid-reply.
  • List it beside Ollama, llama.cpp and MLX in the privacy text: nothing leaves the Mac.

Done when: on macOS 26 with Apple Intelligence on, inline suggestions and all four actions answer with no network request, a request too large for the model is refused before generation with a clear message, and an ineligible Mac shows why the choice is dimmed.

Alternatives considered

Install and run Ollama, llama.cpp or MLX and add it as the active provider.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    platform-macos
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions