Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants