SwiftOpenAI
SwiftOpenAI copied to clipboard
Add new gpt-4.1-nano model
We should add the new gpt-4.1-nano model for usage: https://platform.openai.com/docs/models/gpt-4.1-nano
Yes! would you mind opening a PR for it?
It is not scalable to add a new release for every model released, models are released weekly! to solve that you can use the .custom option https://github.com/jamesrochabrun/SwiftOpenAI/blob/main/Sources/OpenAI/Public/Parameters/Model.swift#L74
like this:
model: .custom("YOUR_MODEL_NAME")
:)
That makes sense. And yes, I can open a PR for it this weekend. Thanks!