diff --git a/api/openai/request.go b/api/openai/request.go index 4533b103..cc15fe40 100644 --- a/api/openai/request.go +++ b/api/openai/request.go @@ -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{} diff --git a/examples/configurations/llava/README.md b/examples/configurations/llava/README.md index 9e39a32c..b0fee631 100644 --- a/examples/configurations/llava/README.md +++ b/examples/configurations/llava/README.md @@ -1,3 +1,4 @@ +![llava](https://github.com/mudler/LocalAI/assets/2420543/cb0a0897-3b58-4350-af66-e6f4387b58d3) ## Setup