Skip to content

Commit 13a746a

Browse files
committed
update
1 parent 88c9ac3 commit 13a746a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/modules/observability/lib/otel/open_inference/openinference.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ func convertModelMsg(msg map[string]interface{}) map[string]interface{} {
8686
}
8787
typ, _ := mcContent["type"]
8888
text, _ := mcContent["text"]
89+
if text == nil {
90+
text, _ = mcContent["content"]
91+
}
8992
image, _ := mcContent["image_url"]
9093
part := map[string]interface{}{}
9194
switch typ {

0 commit comments

Comments
 (0)