mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-07 11:25:00 +00:00
Support file inputs
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
45c58752e5
commit
956c4ff660
3 changed files with 102 additions and 9 deletions
|
@ -312,7 +312,7 @@ func mergeOpenAIRequestAndBackendConfig(config *config.BackendConfig, input *sch
|
|||
// Decode content as base64 either if it's an URL or base64 text
|
||||
base64, err := utils.GetContentURIAsBase64(pp.AudioURL.URL)
|
||||
if err != nil {
|
||||
log.Error().Msgf("Failed encoding image: %s", err)
|
||||
log.Error().Msgf("Failed encoding audio: %s", err)
|
||||
continue CONTENT
|
||||
}
|
||||
input.Messages[i].StringAudios = append(input.Messages[i].StringAudios, base64) // TODO: make sure that we only return base64 stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue