mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Add comment
This commit is contained in:
parent
6b5f33c7e8
commit
2de5971adc
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ export class OpenRouterHandler implements ApiHandler {
|
|||
msg.content = [{ type: "text", text: msg.content }]
|
||||
}
|
||||
if (Array.isArray(msg.content)) {
|
||||
// NOTE: this is fine since env details will always be added at the end. but if it weren't there, and the user added a image_url type message, it would pop a text part before it and then move it after to the end.
|
||||
let lastTextPart = msg.content.filter((part) => part.type === "text").pop()
|
||||
|
||||
if (!lastTextPart) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue