lastmile-ai / aiconfig

AIConfig is a config-based framework to build generative AI applications.
https://aiconfig.lastmileai.dev
MIT License
942 stars 77 forks source link

Update to throw IndexError if model name not registered #1475

Closed justinkchen closed 6 months ago

justinkchen commented 6 months ago

I wasn't really sure where else this change needed to be done. I added this error message in this registry code since it will be called by the same run_batch call that checks for prompts too

Ankush-lastmile commented 6 months ago

Thanks! Change looks reasonable to me -- @Ankush-lastmile to confirm

Looks good to me, thanks for adding this @justinkchen

where else this change needed to be done

We should be fine with just this change, any similar methods either already or can call the modified one