Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2023-11-10 19:51:02 +01:00
parent dc8b8640d5
commit d32c188d37
2 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func updateConfig(config *config.Config, input *schema.OpenAIRequest) {
for i, m := range input.Messages {
switch content := m.Content.(type) {
case string:
m.StringContent = content
input.Messages[i].StringContent = content
case []interface{}:
dat, _ := json.Marshal(content)
c := []schema.Content{}

View File

@ -1,3 +1,4 @@
![llava](https://github.com/mudler/LocalAI/assets/2420543/cb0a0897-3b58-4350-af66-e6f4387b58d3)
## Setup