-
Notifications
You must be signed in to change notification settings - Fork 500
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
feat: add reka ai support #304
Conversation
} from './chatComplete'; | ||
|
||
const RekaAIConfig: ProviderConfigs = { | ||
chatComplete: RekaAIChatCompleteConfig, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They don't seem to have a streaming endpoint so I only added chat completion support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged. We have a json to stream function but we can use that in another PR.
} | ||
}); | ||
|
||
if (messages[0].type !== 'human') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First item must be human.
See https://docs.reka.ai/guides/001-chat.html#conversation-history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged
// NOTE: image need to be first | ||
media_url ? messages.unshift(newMessage) : messages.push(newMessage); | ||
lastType = type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There can only be one image in the conversation history. Moreover, we can only use images on the first turn.
See https://docs.reka.ai/guides/002-image-video-audio-chat.html#multiple-turns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged
Hey. Thanks for the PR. Whenever possible, can you please resolve the conflicts. |
Hey @meronogbai - Please look into the merge conflicts whenever possible. |
I’ll tale a look tonight. |
Done 🫡 |
This adds support for reka ai.
Related Issues: (optional)
Closes #302