Skip to content

Conversation

@jherr
Copy link
Contributor

@jherr jherr commented Dec 12, 2025

🎯 Changes

1. New Unified ai() Function (Default Export)

  • Introduced a single ai() function as the default export from @tanstack/ai
  • Supports multiple activity types: text, embed, summarize, and image
  • Type-safe based on adapter type - the compiler knows what options are valid per adapter

2. Split Adapters for Tree-Shaking

Each adapter package now exports specialized functions:

Package Functions
@tanstack/ai-openai openaiText, openaiEmbed, openaiSummarize, openaiImage
@tanstack/ai-anthropic anthropicText, anthropicSummarize
@tanstack/ai-gemini geminiText, geminiEmbed, geminiSummarize, geminiImage
@tanstack/ai-ollama ollamaText, ollamaEmbed, ollamaSummarize
@tanstack/ai-grok (NEW!) grokText, grokSummarize, grokImage

Each also exports create* variants for custom API key configuration (e.g., createOpenaiText(apiKey, config)).

3. New @tanstack/ai-grok Package

  • Full support for xAI's Grok models (Grok 3, Grok 3 Mini, Grok 4, vision models)
  • Text completion with tool support
  • Summarization
  • Image generation (grok-2-image-1212)
  • Environment variable: XAI_API_KEY

📚 Documentation Updates

  • New docs:

    • docs/adapters/grok.md - Complete Grok adapter documentation
    • docs/guides/image-generation.md - Image generation guide
    • docs/guides/tree-shakeable-adapters.md - Guide on the new adapter architecture
  • Updated adapter docs with all available functions:

    • openai.md, anthropic.md, gemini.md, ollama.md
    • Each now covers: text, embeddings, summarization, image generation (where supported)
  • Updated all example code across docs to use:

    • ai as default export
    • New adapter naming (openaiText instead of openai)

🧪 Testing Improvements

Smoke Tests (packages/typescript/smoke-tests/adapters/)

  • Complete refactor with modular test structure
  • New CLI interface for running specific tests
  • Test categories:
    • CST - Chat Stream
    • TLS - Tool Calls (Server)
    • APR - Tool Approval Flow
    • AGS - Agentic Structured Loop
    • EMB - Embeddings
    • SUM - Summarization
    • IMG - Image Generation
    • OST - One-Shot Text
    • STR - Structured Output

Testing Panel (testing/panel/)

  • Added Grok to provider selection UI
  • New routes: /image, /summarize, /structured
  • API endpoints: api.image.ts, api.summarize.ts, api.structured.ts
  • Added @tanstack/ai-grok and @tanstack/ai-ollama dependencies
  • Integrated into pnpm workspace

🏗️ Architecture Changes

  • New activities system in packages/typescript/ai/src/activities/:

    • text/ - Text/chat completions with streaming
    • embedding/ - Vector embeddings
    • summarize/ - Text summarization
    • image/ - Image generation
  • Renamed internals:

    • chat.tsactivities/text/index.ts
    • ChatOptionsTextOptions
    • chatOptions()textOptions()
  • Schema converters added to each adapter for Zod → provider schema conversion


📦 Package Updates

  • All adapter packages bumped to minor version
  • Added @tanstack/ai-grok as new package
  • Updated workspace configuration to include testing/*

Example Usage (New Pattern)

import ai from "@tanstack/ai";
import { openaiText } from "@tanstack/ai-openai";

// Text completion
const stream = ai({
  adapter: openaiText(),
  messages: [{ role: "user", content: "Hello!" }],
  model: "gpt-4o",
});

// Embeddings
import { openaiEmbed } from "@tanstack/ai-openai";
const result = await ai({
  adapter: openaiEmbed(),
  model: "text-embedding-3-small",
  input: "Text to embed",
});

// Image generation
import { openaiImage } from "@tanstack/ai-openai";
const images = await ai({
  adapter: openaiImage(),
  model: "gpt-image-1",
  prompt: "A sunset over mountains",
});

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr. (many times)

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

@jherr jherr requested a review from a team December 12, 2025 03:02
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 12, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch splitting-made-functional

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jherr jherr changed the base branch from main to feat/splitting-adapters-up December 12, 2025 03:02
@nx-cloud
Copy link

nx-cloud bot commented Dec 12, 2025

View your CI Pipeline Execution ↗ for commit 0b2e80a

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 44s View ↗
nx run-many --targets=build --exclude=examples/** ✅ Succeeded 8s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-12 17:06:43 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 12, 2025

Open in StackBlitz

@tanstack/ai

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai@142

@tanstack/ai-anthropic

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-anthropic@142

@tanstack/ai-client

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-client@142

@tanstack/ai-devtools-core

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-devtools-core@142

@tanstack/ai-gemini

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-gemini@142

@tanstack/ai-ollama

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-ollama@142

@tanstack/ai-openai

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-openai@142

@tanstack/ai-react

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-react@142

@tanstack/ai-react-ui

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-react-ui@142

@tanstack/ai-solid

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-solid@142

@tanstack/ai-solid-ui

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-solid-ui@142

@tanstack/ai-svelte

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-svelte@142

@tanstack/ai-vue

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-vue@142

@tanstack/ai-vue-ui

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-vue-ui@142

@tanstack/react-ai-devtools

npm i https://pkg.pr.new/TanStack/ai/@tanstack/react-ai-devtools@142

@tanstack/solid-ai-devtools

npm i https://pkg.pr.new/TanStack/ai/@tanstack/solid-ai-devtools@142

commit: 0b2e80a

@jherr jherr changed the title Splitting made functional Splitting made operational with extra tests Dec 12, 2025
AlemTuzlak and others added 12 commits December 12, 2025 10:29
…or `ai`

- Updated all instances of `import ai from "@tanstack/ai"` to `import { ai } from "@tanstack/ai"` across various documentation files, guides, and examples.
- Ensured consistency in import statements for better clarity and adherence to best practices.
@AlemTuzlak AlemTuzlak merged commit 96a08b1 into feat/splitting-adapters-up Dec 12, 2025
5 of 6 checks passed
@AlemTuzlak AlemTuzlak deleted the splitting-made-functional branch December 12, 2025 17:22
jherr added a commit that referenced this pull request Dec 15, 2025
* fix: refactoring ai for more activities

* smoke tests passing

* woot, all the test stuff is working

* dev panel updates for images, summarization, one shot and structured

* enhancing smoke tests

* fixing tests

* adding grok

* last minute tests

* Refactor imports in documentation and examples to use named imports for `ai`

- Updated all instances of `import ai from "@tanstack/ai"` to `import { ai } from "@tanstack/ai"` across various documentation files, guides, and examples.
- Ensured consistency in import statements for better clarity and adherence to best practices.

* ci: apply automated fixes

* fix typesafety on ai

* ci: apply automated fixes

* cleanup types

* ci: apply automated fixes

* remove grok

* ci: apply automated fixes

* fix provenence?

* update deps

* fix tests

---------

Co-authored-by: Alem Tuzlak <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
AlemTuzlak added a commit that referenced this pull request Dec 19, 2025
#137)

* feat: split up adapters into functionalities and add generate function

* ci: apply automated fixes

* readme update

* add structured outputs and stream flag

* ci: apply automated fixes

* image generation for openai and gemini

* ci: apply automated fixes

* structured outputs

* lock fix

* ci: apply automated fixes

* Splitting made operational with extra tests (#142)

* fix: refactoring ai for more activities

* smoke tests passing

* woot, all the test stuff is working

* dev panel updates for images, summarization, one shot and structured

* enhancing smoke tests

* fixing tests

* adding grok

* last minute tests

* Refactor imports in documentation and examples to use named imports for `ai`

- Updated all instances of `import ai from "@tanstack/ai"` to `import { ai } from "@tanstack/ai"` across various documentation files, guides, and examples.
- Ensured consistency in import statements for better clarity and adherence to best practices.

* ci: apply automated fixes

* fix typesafety on ai

* ci: apply automated fixes

* cleanup types

* ci: apply automated fixes

* remove grok

* ci: apply automated fixes

* fix provenence?

* update deps

* fix tests

---------

Co-authored-by: Alem Tuzlak <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Adding av adapters (#144)

* video generation

* text to speech and speech to text

* adding some cool audio UI to the dev panel

* small fixups

* ci: apply automated fixes

* client fixes on tool calls

* few more client fixups

* one last test fix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Splitting adapters up fixes (#148)

* fixing JSON-Schema conversion

* summarize now really supports streaming

* ci: apply automated fixes

* linting fixes

* feat: add createOptions helper and improve summarization streaming

- Add createOptions() function for type-safe adapter option creation
- Refactor OpenAI summarize adapter to use text adapter for streaming
- Deprecate textOptions() in favor of createOptions()
- Update examples to use createOptions pattern
- Add runtime adapter switching documentation guide

* massive overhaul to remove ai

* ci: apply automated fixes

* Going to openaiText

* ci: apply automated fixes

* doc fixes and removal of legacy exports

* adding more options to gemini audio

* doc updates

* ci: apply automated fixes

* add docs script

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

* migrate model into adapter (#157)

* migrate model into adapter

* ci: apply automated fixes

* Feat/move model into adapter fix types and cleanup (#158)

* checkpoint

* checkpoint

* ci: apply automated fixes

* unrename

* move to _types pattern

* Remove commented code

* Goodbye embeddings

* move to ~types

* checkpoint

* ci: apply automated fixes

* updated docs and fixed a small bug with types

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <[email protected]>

* type safety tests for chat

* ci: apply automated fixes

* image tests

* ci: apply automated fixes

* update format

* ci: apply automated fixes

* flatten options object

* ci: apply automated fixes

* testing fixups

* fix: streaming functions and migration doc

* few more adapter/model fixups

* ci: apply automated fixes

* small bug fixes

* ci: apply automated fixes

* fix up exports and example

* tighten up types

* ci: apply automated fixes

* tighten up types

* ci: apply automated fixes

* fixes

* ci: apply automated fixes

* updating the changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jack Herrington <[email protected]>
Co-authored-by: Tanner Linsley <[email protected]>
LuggaPugga pushed a commit to LuggaPugga/ai that referenced this pull request Jan 5, 2026
TanStack#137)

* feat: split up adapters into functionalities and add generate function

* ci: apply automated fixes

* readme update

* add structured outputs and stream flag

* ci: apply automated fixes

* image generation for openai and gemini

* ci: apply automated fixes

* structured outputs

* lock fix

* ci: apply automated fixes

* Splitting made operational with extra tests (TanStack#142)

* fix: refactoring ai for more activities

* smoke tests passing

* woot, all the test stuff is working

* dev panel updates for images, summarization, one shot and structured

* enhancing smoke tests

* fixing tests

* adding grok

* last minute tests

* Refactor imports in documentation and examples to use named imports for `ai`

- Updated all instances of `import ai from "@tanstack/ai"` to `import { ai } from "@tanstack/ai"` across various documentation files, guides, and examples.
- Ensured consistency in import statements for better clarity and adherence to best practices.

* ci: apply automated fixes

* fix typesafety on ai

* ci: apply automated fixes

* cleanup types

* ci: apply automated fixes

* remove grok

* ci: apply automated fixes

* fix provenence?

* update deps

* fix tests

---------

Co-authored-by: Alem Tuzlak <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Adding av adapters (TanStack#144)

* video generation

* text to speech and speech to text

* adding some cool audio UI to the dev panel

* small fixups

* ci: apply automated fixes

* client fixes on tool calls

* few more client fixups

* one last test fix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Splitting adapters up fixes (TanStack#148)

* fixing JSON-Schema conversion

* summarize now really supports streaming

* ci: apply automated fixes

* linting fixes

* feat: add createOptions helper and improve summarization streaming

- Add createOptions() function for type-safe adapter option creation
- Refactor OpenAI summarize adapter to use text adapter for streaming
- Deprecate textOptions() in favor of createOptions()
- Update examples to use createOptions pattern
- Add runtime adapter switching documentation guide

* massive overhaul to remove ai

* ci: apply automated fixes

* Going to openaiText

* ci: apply automated fixes

* doc fixes and removal of legacy exports

* adding more options to gemini audio

* doc updates

* ci: apply automated fixes

* add docs script

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

* migrate model into adapter (TanStack#157)

* migrate model into adapter

* ci: apply automated fixes

* Feat/move model into adapter fix types and cleanup (TanStack#158)

* checkpoint

* checkpoint

* ci: apply automated fixes

* unrename

* move to _types pattern

* Remove commented code

* Goodbye embeddings

* move to ~types

* checkpoint

* ci: apply automated fixes

* updated docs and fixed a small bug with types

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <[email protected]>

* type safety tests for chat

* ci: apply automated fixes

* image tests

* ci: apply automated fixes

* update format

* ci: apply automated fixes

* flatten options object

* ci: apply automated fixes

* testing fixups

* fix: streaming functions and migration doc

* few more adapter/model fixups

* ci: apply automated fixes

* small bug fixes

* ci: apply automated fixes

* fix up exports and example

* tighten up types

* ci: apply automated fixes

* tighten up types

* ci: apply automated fixes

* fixes

* ci: apply automated fixes

* updating the changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jack Herrington <[email protected]>
Co-authored-by: Tanner Linsley <[email protected]>
LuggaPugga pushed a commit to LuggaPugga/ai that referenced this pull request Jan 5, 2026
TanStack#137)

* feat: split up adapters into functionalities and add generate function

* ci: apply automated fixes

* readme update

* add structured outputs and stream flag

* ci: apply automated fixes

* image generation for openai and gemini

* ci: apply automated fixes

* structured outputs

* lock fix

* ci: apply automated fixes

* Splitting made operational with extra tests (TanStack#142)

* fix: refactoring ai for more activities

* smoke tests passing

* woot, all the test stuff is working

* dev panel updates for images, summarization, one shot and structured

* enhancing smoke tests

* fixing tests

* adding grok

* last minute tests

* Refactor imports in documentation and examples to use named imports for `ai`

- Updated all instances of `import ai from "@tanstack/ai"` to `import { ai } from "@tanstack/ai"` across various documentation files, guides, and examples.
- Ensured consistency in import statements for better clarity and adherence to best practices.

* ci: apply automated fixes

* fix typesafety on ai

* ci: apply automated fixes

* cleanup types

* ci: apply automated fixes

* remove grok

* ci: apply automated fixes

* fix provenence?

* update deps

* fix tests

---------

Co-authored-by: Alem Tuzlak <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Adding av adapters (TanStack#144)

* video generation

* text to speech and speech to text

* adding some cool audio UI to the dev panel

* small fixups

* ci: apply automated fixes

* client fixes on tool calls

* few more client fixups

* one last test fix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Splitting adapters up fixes (TanStack#148)

* fixing JSON-Schema conversion

* summarize now really supports streaming

* ci: apply automated fixes

* linting fixes

* feat: add createOptions helper and improve summarization streaming

- Add createOptions() function for type-safe adapter option creation
- Refactor OpenAI summarize adapter to use text adapter for streaming
- Deprecate textOptions() in favor of createOptions()
- Update examples to use createOptions pattern
- Add runtime adapter switching documentation guide

* massive overhaul to remove ai

* ci: apply automated fixes

* Going to openaiText

* ci: apply automated fixes

* doc fixes and removal of legacy exports

* adding more options to gemini audio

* doc updates

* ci: apply automated fixes

* add docs script

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

* migrate model into adapter (TanStack#157)

* migrate model into adapter

* ci: apply automated fixes

* Feat/move model into adapter fix types and cleanup (TanStack#158)

* checkpoint

* checkpoint

* ci: apply automated fixes

* unrename

* move to _types pattern

* Remove commented code

* Goodbye embeddings

* move to ~types

* checkpoint

* ci: apply automated fixes

* updated docs and fixed a small bug with types

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <[email protected]>

* type safety tests for chat

* ci: apply automated fixes

* image tests

* ci: apply automated fixes

* update format

* ci: apply automated fixes

* flatten options object

* ci: apply automated fixes

* testing fixups

* fix: streaming functions and migration doc

* few more adapter/model fixups

* ci: apply automated fixes

* small bug fixes

* ci: apply automated fixes

* fix up exports and example

* tighten up types

* ci: apply automated fixes

* tighten up types

* ci: apply automated fixes

* fixes

* ci: apply automated fixes

* updating the changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jack Herrington <[email protected]>
Co-authored-by: Tanner Linsley <[email protected]>
LuggaPugga pushed a commit to LuggaPugga/ai that referenced this pull request Jan 5, 2026
TanStack#137)

* feat: split up adapters into functionalities and add generate function

* ci: apply automated fixes

* readme update

* add structured outputs and stream flag

* ci: apply automated fixes

* image generation for openai and gemini

* ci: apply automated fixes

* structured outputs

* lock fix

* ci: apply automated fixes

* Splitting made operational with extra tests (TanStack#142)

* fix: refactoring ai for more activities

* smoke tests passing

* woot, all the test stuff is working

* dev panel updates for images, summarization, one shot and structured

* enhancing smoke tests

* fixing tests

* adding grok

* last minute tests

* Refactor imports in documentation and examples to use named imports for `ai`

- Updated all instances of `import ai from "@tanstack/ai"` to `import { ai } from "@tanstack/ai"` across various documentation files, guides, and examples.
- Ensured consistency in import statements for better clarity and adherence to best practices.

* ci: apply automated fixes

* fix typesafety on ai

* ci: apply automated fixes

* cleanup types

* ci: apply automated fixes

* remove grok

* ci: apply automated fixes

* fix provenence?

* update deps

* fix tests

---------

Co-authored-by: Alem Tuzlak <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Adding av adapters (TanStack#144)

* video generation

* text to speech and speech to text

* adding some cool audio UI to the dev panel

* small fixups

* ci: apply automated fixes

* client fixes on tool calls

* few more client fixups

* one last test fix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Splitting adapters up fixes (TanStack#148)

* fixing JSON-Schema conversion

* summarize now really supports streaming

* ci: apply automated fixes

* linting fixes

* feat: add createOptions helper and improve summarization streaming

- Add createOptions() function for type-safe adapter option creation
- Refactor OpenAI summarize adapter to use text adapter for streaming
- Deprecate textOptions() in favor of createOptions()
- Update examples to use createOptions pattern
- Add runtime adapter switching documentation guide

* massive overhaul to remove ai

* ci: apply automated fixes

* Going to openaiText

* ci: apply automated fixes

* doc fixes and removal of legacy exports

* adding more options to gemini audio

* doc updates

* ci: apply automated fixes

* add docs script

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

* migrate model into adapter (TanStack#157)

* migrate model into adapter

* ci: apply automated fixes

* Feat/move model into adapter fix types and cleanup (TanStack#158)

* checkpoint

* checkpoint

* ci: apply automated fixes

* unrename

* move to _types pattern

* Remove commented code

* Goodbye embeddings

* move to ~types

* checkpoint

* ci: apply automated fixes

* updated docs and fixed a small bug with types

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <[email protected]>

* type safety tests for chat

* ci: apply automated fixes

* image tests

* ci: apply automated fixes

* update format

* ci: apply automated fixes

* flatten options object

* ci: apply automated fixes

* testing fixups

* fix: streaming functions and migration doc

* few more adapter/model fixups

* ci: apply automated fixes

* small bug fixes

* ci: apply automated fixes

* fix up exports and example

* tighten up types

* ci: apply automated fixes

* tighten up types

* ci: apply automated fixes

* fixes

* ci: apply automated fixes

* updating the changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jack Herrington <[email protected]>
Co-authored-by: Tanner Linsley <[email protected]>
LuggaPugga pushed a commit to LuggaPugga/ai that referenced this pull request Jan 5, 2026
TanStack#137)

* feat: split up adapters into functionalities and add generate function

* ci: apply automated fixes

* readme update

* add structured outputs and stream flag

* ci: apply automated fixes

* image generation for openai and gemini

* ci: apply automated fixes

* structured outputs

* lock fix

* ci: apply automated fixes

* Splitting made operational with extra tests (TanStack#142)

* fix: refactoring ai for more activities

* smoke tests passing

* woot, all the test stuff is working

* dev panel updates for images, summarization, one shot and structured

* enhancing smoke tests

* fixing tests

* adding grok

* last minute tests

* Refactor imports in documentation and examples to use named imports for `ai`

- Updated all instances of `import ai from "@tanstack/ai"` to `import { ai } from "@tanstack/ai"` across various documentation files, guides, and examples.
- Ensured consistency in import statements for better clarity and adherence to best practices.

* ci: apply automated fixes

* fix typesafety on ai

* ci: apply automated fixes

* cleanup types

* ci: apply automated fixes

* remove grok

* ci: apply automated fixes

* fix provenence?

* update deps

* fix tests

---------

Co-authored-by: Alem Tuzlak <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Adding av adapters (TanStack#144)

* video generation

* text to speech and speech to text

* adding some cool audio UI to the dev panel

* small fixups

* ci: apply automated fixes

* client fixes on tool calls

* few more client fixups

* one last test fix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Splitting adapters up fixes (TanStack#148)

* fixing JSON-Schema conversion

* summarize now really supports streaming

* ci: apply automated fixes

* linting fixes

* feat: add createOptions helper and improve summarization streaming

- Add createOptions() function for type-safe adapter option creation
- Refactor OpenAI summarize adapter to use text adapter for streaming
- Deprecate textOptions() in favor of createOptions()
- Update examples to use createOptions pattern
- Add runtime adapter switching documentation guide

* massive overhaul to remove ai

* ci: apply automated fixes

* Going to openaiText

* ci: apply automated fixes

* doc fixes and removal of legacy exports

* adding more options to gemini audio

* doc updates

* ci: apply automated fixes

* add docs script

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

* migrate model into adapter (TanStack#157)

* migrate model into adapter

* ci: apply automated fixes

* Feat/move model into adapter fix types and cleanup (TanStack#158)

* checkpoint

* checkpoint

* ci: apply automated fixes

* unrename

* move to _types pattern

* Remove commented code

* Goodbye embeddings

* move to ~types

* checkpoint

* ci: apply automated fixes

* updated docs and fixed a small bug with types

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <[email protected]>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <[email protected]>

* type safety tests for chat

* ci: apply automated fixes

* image tests

* ci: apply automated fixes

* update format

* ci: apply automated fixes

* flatten options object

* ci: apply automated fixes

* testing fixups

* fix: streaming functions and migration doc

* few more adapter/model fixups

* ci: apply automated fixes

* small bug fixes

* ci: apply automated fixes

* fix up exports and example

* tighten up types

* ci: apply automated fixes

* tighten up types

* ci: apply automated fixes

* fixes

* ci: apply automated fixes

* updating the changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jack Herrington <[email protected]>
Co-authored-by: Tanner Linsley <[email protected]>
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.

3 participants