Skip to content
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

[Go] replace IsKnownModel with IsDefinedModel #615

Merged
merged 1 commit into from
Jul 15, 2024
Merged

[Go] replace IsKnownModel with IsDefinedModel #615

merged 1 commit into from
Jul 15, 2024

Conversation

jba
Copy link
Contributor

@jba jba commented Jul 13, 2024

IsDefinedModel is more general. You can call it right after Init
to determine if a model is known, or any time to see if you've already
defined a model, and avoid the panic from DefineModel.

Also remove KnownModels. It's unclear if it's useful. If it is, we can
always add it later.

Do the same for embedders.

@jba jba requested review from ianlancetaylor and pavelgj July 13, 2024 21:32
@jba jba force-pushed the jba/gemini-factor branch from 639211f to cc8495c Compare July 15, 2024 17:40
Base automatically changed from jba/gemini-factor to main July 15, 2024 17:46
IsDefinedModel is more general. You can call it right after Init
to determine if a model is known, or any time to see if you've already
defined a model, and avoid the panic from DefineModel.

Also remove KnownModels. It's unclear if it's useful. If it is, we can
always add it later.

Do the same for embedders.
@jba jba merged commit 8481d30 into main Jul 15, 2024
5 checks passed
@jba jba deleted the jba/isdef branch July 15, 2024 17:59
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

Successfully merging this pull request may close these issues.

2 participants