Skip to content

Conversation

oneshinyboi
Copy link

Deep infra, and maybe some other model providers dont support ChatMessagePart[] as part of the message sent via http request, rather they work with only Strings. We can default to just sending the message.content and only try to send a ChatMessagePart[] if the model supports it.

I also changed it so that all the models supported by the api are listed instead of just gpt ones.

The changes to src/constants/appConstants.ts and src/constants/apiEndpoints.ts are just to demostrate the usage of another api, and maybe you can test with that if you set up a free account.

cheers!

image

dependabot bot and others added 2 commits April 29, 2024 08:54
Bumps [i18next](https://github.com/i18next/i18next) from 23.11.2 to 23.11.3.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next@v23.11.2...v23.11.3)

---
updated-dependencies:
- dependency-name: i18next
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
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.

1 participant