-
-
Notifications
You must be signed in to change notification settings - Fork 208
feat: extract @tanstack/openai-base and @tanstack/ai-utils packages #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 17 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
0b5b485
feat(ai-utils): add @tanstack/ai-utils package with shared utilities
AlemTuzlak 40bd0cf
fix(ai-utils): align with canonical adapter patterns
AlemTuzlak 8b79f35
feat(openai-base): add @tanstack/openai-base with schema converter, t…
AlemTuzlak 8c9118a
feat(openai-base): add Chat Completions text adapter base class
AlemTuzlak 1d2450d
feat(openai-base): add Responses API text adapter base class
AlemTuzlak 11f4fe2
feat(openai-base): add image, summarize, transcription, TTS, and vide…
AlemTuzlak ae94262
refactor(ai-openai): delegate to @tanstack/openai-base and @tanstack/…
AlemTuzlak 6dce76a
refactor(ai-grok): delegate to @tanstack/openai-base and @tanstack/ai…
AlemTuzlak ca4234d
refactor: migrate ai-groq, ai-openrouter, ai-ollama to shared utilities
AlemTuzlak b8066a7
style: format files with prettier
AlemTuzlak 3d0b191
refactor: migrate ai-anthropic, ai-gemini, ai-fal, ai-elevenlabs to @…
AlemTuzlak 23252bb
chore: add changesets for openai-base extraction
AlemTuzlak cd6b57a
fix: address CodeRabbit review comments on openai-base extraction
AlemTuzlak 4acda53
fix: resolve eslint and knip failures from full test suite
AlemTuzlak e3b8f5c
ci: apply automated fixes
autofix-ci[bot] 857a88e
fix: address CodeRabbit review comments
AlemTuzlak 5e425bd
fix: address code review findings
AlemTuzlak 4f0f433
fix: remove unnecessary type assertions in transcription adapter
AlemTuzlak 0bc9886
ci: apply automated fixes
autofix-ci[bot] a5e3bc4
Merge remote-tracking branch 'origin/main' into feat/extract-openai-b…
AlemTuzlak 8d5121e
Merge branch 'origin/main' into feat/extract-openai-base-and-ai-utils
AlemTuzlak 3965b88
fix(openai-base): align rebased openai-base with current main
AlemTuzlak 51cef2d
Merge branch 'main' into feat/extract-openai-base-and-ai-utils
AlemTuzlak ff0c683
fix: address unresolved CodeRabbit findings + audit hygiene regression
AlemTuzlak 338a54a
fix: address Round 1 cr-loop findings (subject-scope bucket-a)
AlemTuzlak 47f357a
fix: address Round 2 cr-loop findings
AlemTuzlak d6af8ee
fix: address Round 3 cr-loop findings (lifecycle + edge cases)
AlemTuzlak da20ffb
chore(examples/ts-react-chat): refresh model picker
AlemTuzlak d0b318d
Merge branch 'main' into feat/extract-openai-base-and-ai-utils
AlemTuzlak 3bed78b
refactor(openai-base, ai-utils, ai-openai, ai-grok): address PR #409 …
AlemTuzlak 2ae8eca
Removed openai and zod as direct dependencies of grok adapter
tombeckenham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@tanstack/ai-utils': minor | ||
| --- | ||
|
|
||
| New package: shared provider-agnostic utilities for TanStack AI adapters. Includes `generateId`, `getApiKeyFromEnv`, `transformNullsToUndefined`, and `ModelMeta` types with `defineModelMeta` validation helper. Zero runtime dependencies. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@tanstack/openai-base': minor | ||
| --- | ||
|
|
||
| New package: shared base adapters and utilities for OpenAI-compatible providers. Includes Chat Completions and Responses API text adapter base classes, image/summarize/transcription/TTS/video adapter base classes, schema converter, 15 tool converters, and shared types. Providers extend these base classes to reduce duplication and ensure consistent behavior. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| '@tanstack/ai-openai': patch | ||
| '@tanstack/ai-grok': patch | ||
| '@tanstack/ai-groq': patch | ||
| '@tanstack/ai-openrouter': patch | ||
| '@tanstack/ai-ollama': patch | ||
| '@tanstack/ai-anthropic': patch | ||
| '@tanstack/ai-gemini': patch | ||
| '@tanstack/ai-fal': patch | ||
| '@tanstack/ai-elevenlabs': patch | ||
| --- | ||
|
|
||
| Internal refactor: delegate shared utilities to `@tanstack/ai-utils` and OpenAI-compatible adapter logic to `@tanstack/openai-base`. No breaking changes — all public APIs remain identical. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.