Skip to content

Releases: FranciscoMoretti/chat-js

@chat-js/cli@0.3.0

01 Mar 21:47
9765686

Choose a tag to compare

Minor Changes

  • #94 2a8a7cc Thanks @FranciscoMoretti! - ## Config defaults & defineConfig helper

    New features

    • defineConfig() helper — new type-safe wrapper for chat.config.ts. The gateway type is inferred from ai.gateway, so autocomplete and type errors are scoped to the model IDs available in the chosen gateway. Replace satisfies ConfigInput with defineConfig({...}).
    • Gateway-specific defaults — all AI config fields (models, tools, workflows) are now optional. Omitted fields are automatically filled from per-gateway defaults at runtime via applyDefaults(). Only ai.gateway is required.
    • chatjs config CLI command — new command that prints the fully-resolved configuration for the current project, applying all defaults. Useful for debugging and verifying your setup.
    • Separate defaults per gatewayvercel, openrouter, openai, and openai-compatible each have their own typed defaults (ModelDefaultsFor<G>), ensuring model IDs are validated against the correct gateway's model registry.
    • Stricter image/video tool schemastools.image and tools.video now use a discriminated union: enabled: true requires a default model, while enabled: false makes it optional.

    Breaking changes

    None — existing configs using satisfies ConfigInput continue to work. Migrating to defineConfig() is recommended for better DX but not required.

@chat-js/cli@0.2.1

27 Feb 17:23
04a9419

Choose a tag to compare

Patch Changes

  • #100 a665893 Thanks @FranciscoMoretti! - - Improve AI title generation prompt for cleaner, more concise titles
    • Switch title and followup suggestion workflows to google/gemini-2.5-flash-lite
    • Refactor followup suggestions to use recent messages for better context
    • Fix streamdown source path in globals.css for wildcard imports
    • Rename internal references from chat.js to chat-js for consistency
    • Simplify template sync process

@chat-js/cli@0.2.0

23 Feb 20:37
b66563c

Choose a tag to compare

Minor Changes