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 { for i, m := range input.Messages {
switch content := m.Content.(type) { switch content := m.Content.(type) {
case string: case string:
m.StringContent = content input.Messages[i].StringContent = content
case []interface{}: case []interface{}:
dat, _ := json.Marshal(content) dat, _ := json.Marshal(content)
c := []schema.Content{} c := []schema.Content{}

View file

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