ModelFileName returns the filename of the model If the model is a URL, it will return the MD5 of the URL which is the filename
()
| 1192 | // ModelFileName returns the filename of the model |
| 1193 | // If the model is a URL, it will return the MD5 of the URL which is the filename |
| 1194 | func (c *ModelConfig) ModelFileName() string { |
| 1195 | uri := downloader.URI(c.Model) |
| 1196 | if uri.LooksLikeURL() { |
| 1197 | f, _ := uri.FilenameFromUrl() |
| 1198 | return f |
| 1199 | } |
| 1200 | |
| 1201 | return c.Model |
| 1202 | } |
| 1203 | |
| 1204 | func (c *ModelConfig) FunctionToCall() string { |
| 1205 | if c.functionCallNameString != "" && |
no test coverage detected