-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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)lin72h
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request