Skip to content

Support more models #311

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Support more models #311

wants to merge 2 commits into from

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