mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-29 15:04:59 +00:00
fixes
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
dc8b8640d5
commit
d32c188d37
2 changed files with 2 additions and 1 deletions
|
@ -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{}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||

|
||||
|
||||
## Setup
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue