Tags: mattt/AnyLanguageModel
Tags
Update CI workflow to add `--build-tests` to build step (#85) * Update CI workflow to add --build-tests to build step * Fix compiler warnings in MockLanguageModel * Fix broken multimodal CoreML tests
Pass instructions as system prompt for MLXLanguageModel (#48) * Pass instructions as system prompt for MLX * Update test section with information about running MLX tests --------- Co-authored-by: Mattt Zmuda <[email protected]>
Actually stream the data (#31) * Actually stream the data * Apparently `Task { @mainactor in ... }` is non-blocking but `await MainActor.run` is blocking * Revert last change, it's not the problem * Should only need one while loop * Use EventSource convenience method * Add Linux specific implementation for request streaming --------- Co-authored-by: Mattt Zmuda <[email protected]>
Fix package dependency declarations in package manifest (#34) * Fix declaration of mlx-swift-lm package dependency Xcode seems to have an issue with trailing slash and/or main branch * Drop .git suffixes from dependency declarations * Sort package dependencies ascending * Revert mlx-swift-lm to pulling from main branch, to match project recommendations
Fix concurrency isolation for `Generable` macro expansion (#28) * Add nonisolated modifier to Generable extension declaration * Add memberwise initializer for Generable types * Add test coverage for Generable macro expansion * Simplify redundant conditionals
Add support for image inputs (#21) * Add APIs for image segments in transcript * Add convenience methods for AppKit / NSImage * Add convenience methods for CoreGraphics / CGImage * Add convenience methods for responding to image or images * Add test coverage for respond overloads * Implement image support in model providers * Add image input support for MLX models * Update MLX tests to support image inputs * Conditionalize import of CoreImage * Update CoreMLLanguageModel to throw unsupportedFeature if image segments are in session * Update LlamaLanguageModel to throw unsupportedFeature if image segments are in session * Update README * Remove MLX.GPU.set, as callers can set this themselves * Remove unused MLXLanguageModelError enum * Replace stray png1x1 with shared testImageData * Update README --------- Co-authored-by: noorbhatia <[email protected]>
PreviousNext