Foundation Models has a simple method like:
// Generate a response using a custom type.
let response = try await session.respond(
to: "Generate a cute rescue cat",
generating: CatProfile.self
)
After its release, MLX Swift added a wrapper over their API:
let model = try await loadModel(id: "mlx-community/Qwen3-4B-4bit")
let session = ChatSession(model)
let response = try await session.respond(to: "What are two things to see in San Francisco?")
What do you think of something similar?
let model = try await loadModel(id: "mlx-community/Qwen3-4B-4bit")
let session = ChatSession(model)
let response = try await session.respond(to: "What are two things to see in San Francisco?", generating: Attractions.self)
Foundation Models has a simple method like:
After its release, MLX Swift added a wrapper over their API:
What do you think of something similar?