Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Normalize key messages for all providers #170

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

aponcedeleonch
Copy link
Contributor

Right now there are some providers, e.g. anthropic that can provide the content of the messages as a list

content: [{'type': 'text', 'text': 'hello?'}]

This PR standarizes the content of all messages to string

content: 'hello?'

The list type was making the DB storage to fail

Right now there are some providers, e.g. anthropic that can provide
the content of the messages as a list
```
content: [{'type': 'text', 'text': 'hello?'}]
```

This PR standarizes the content of all messages to string
```
content: 'hello?'
```

The list type was making the DB storage to fail
@aponcedeleonch aponcedeleonch merged commit 1660500 into main Dec 3, 2024
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants