TanStack
OSS
ai
Sign in / Sign up
Open main menu
ai
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
main
c0af4262 fix(types): fix the type definitions for factory models and config, a… (#408) * fix(types): fix the type definitions for factory models and config, and add InferRestArgs utility type * refactor(types): simplify type definitions for factory models by removing unused InferConfig type * fix(types): handle optional model param, restore explicit return type, add regression test Review follow-ups for #408: - InferRestArgs now matches [any?, ...] so factories with an optional first parameter don't silently drop their trailing args - Extract the extended signature into a named ExtendedFactory type and restore an explicit return type on extendAdapter (no cast needed) - Add a regression test for 3-parameter factories like createAnthropicChat(model, apiKey, config?) (#407) - Add a patch changeset for @tanstack/ai Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(types): remove all any from extend-adapter type utilities Replace any-typed function shapes with a sound AnyAdapterFactory constraint built on never params / unknown return (parameters are contravariant, so never accepts every factory). The deliberate model-union widening now lives in an overload signature instead of an unchecked assignment, so no cast or any remains anywhere in the file. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * test(types): assert invalid model names are rejected for 3-param factories Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by liyown
l
Succeeded
main
c0af4262 fix(types): fix the type definitions for factory models and config, a… (#408) * fix(types): fix the type definitions for factory models and config, and add InferRestArgs utility type * refactor(types): simplify type definitions for factory models by removing unused InferConfig type * fix(types): handle optional model param, restore explicit return type, add regression test Review follow-ups for #408: - InferRestArgs now matches [any?, ...] so factories with an optional first parameter don't silently drop their trailing args - Extract the extended signature into a named ExtendedFactory type and restore an explicit return type on extendAdapter (no cast needed) - Add a regression test for 3-parameter factories like createAnthropicChat(model, apiKey, config?) (#407) - Add a patch changeset for @tanstack/ai Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(types): remove all any from extend-adapter type utilities Replace any-typed function shapes with a sound AnyAdapterFactory constraint built on never params / unknown return (parameters are contravariant, so never accepts every factory). The deliberate model-union widening now lives in an overload signature instead of an unchecked assignment, so no cast or any remains anywhere in the file. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * test(types): assert invalid model names are rejected for 3-param factories Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by liyown
l
Previous page
Previous
Next
Next page