Skip to content

Add new gpt-4.1-nano model #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gah020 opened this issue May 5, 2025 · 2 comments
Open

Add new gpt-4.1-nano model #140

gah020 opened this issue May 5, 2025 · 2 comments

Comments

@gah020
Copy link

gah020 commented May 5, 2025

We should add the new gpt-4.1-nano model for usage:
https://platform.openai.com/docs/models/gpt-4.1-nano

@gah020 gah020 changed the title Add New gpt-4.1-nano Model Add new gpt-4.1-nano model May 5, 2025
@jamesrochabrun
Copy link
Owner

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")

:)

@gah020
Copy link
Author

gah020 commented May 6, 2025

That makes sense. And yes, I can open a PR for it this weekend. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants