Bug Report
Following the change to introduce the generic builder, the make function for the CompletionModel was added. This calls Self::new which uses calculate_max_tokens. This is only meant to be used with the predefined models. Otherwise it's not flexible enough.
See #1069
Expected behavior
The generic provider should probably expect that the model passed in is not going to be one of the provided key.
Bug Report
Following the change to introduce the generic builder, the
makefunction for theCompletionModelwas added. This callsSelf::newwhich usescalculate_max_tokens. This is only meant to be used with the predefined models. Otherwise it's not flexible enough.See #1069
Expected behavior
The generic provider should probably expect that the model passed in is not going to be one of the provided key.