Commit Graph

4 Commits

  • docs(ai): Simplify ImageContent interface to base64-only approach
    - Change ImageContent to simple { type, data, mimeType } structure
    - Remove URL and file path support from core interface
    - Simplify provider converters to work with base64 data only
    - Update validation and implementation considerations
    - Clarify that preprocessing is user's responsibility
  • docs(ai): Add comprehensive image input documentation for all LLM providers
    - Document image support for Anthropic, Google GenAI, OpenAI APIs
    - Include format requirements, size limits, and API examples
    - Propose unified abstraction layer for cross-provider image handling
    - Add implementation examples for format conversion and validation
  • feat(ai): Add auto-generated TypeScript models with factory function
    - Generate models.generated.ts from models.json with proper types
    - Categorize providers: OpenAI (Responses), OpenAI-compatible, Anthropic, Gemini
    - Create createLLM() factory with TypeScript overloads for type safety
    - Auto-detect base URLs and environment variables for providers
    - Support 353 models across 39 providers with full autocompletion
    - Exclude generated file from git (rebuilt on npm build)
  • refactor(ai): Add completion signal to onText/onThinking callbacks
    - Update LLMOptions interface to include completion boolean parameter
    - Modify all providers to signal when text/thinking blocks are complete
    - Update examples to handle the completion parameter
    - Move documentation files to docs/ directory