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 {
|
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{}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|

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