Skip to content

Commit

Permalink
🚨 Commit Build Artifact from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and actions-user committed Jan 20, 2025
1 parent ac304b7 commit 9850312
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion dist/main_bun.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ function openAiMessageToGeminiMessage(messages) {
const result = messages.flatMap(({ role, content }) => {
if (role === "system") {
return [
{ role: "user", parts: typeof content !== "string" ? content : [{ text: content }] }
{
role: "user",
parts: typeof content !== "string" ? content : [{ text: content }]
}
];
}
const parts = content == null || typeof content === "string" ? [{ text: content?.toString() ?? "" }] : content.map((item) => {
Expand Down
5 changes: 4 additions & 1 deletion dist/main_cloudflare-workers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ function openAiMessageToGeminiMessage(messages) {
const result = messages.flatMap(({ role, content }) => {
if (role === "system") {
return [
{ role: "user", parts: typeof content !== "string" ? content : [{ text: content }] }
{
role: "user",
parts: typeof content !== "string" ? content : [{ text: content }]
}
];
}
const parts = content == null || typeof content === "string" ? [{ text: content?.toString() ?? "" }] : content.map((item) => {
Expand Down
5 changes: 4 additions & 1 deletion dist/main_deno.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ function openAiMessageToGeminiMessage(messages) {
const result = messages.flatMap(({ role, content }) => {
if (role === "system") {
return [
{ role: "user", parts: typeof content !== "string" ? content : [{ text: content }] }
{
role: "user",
parts: typeof content !== "string" ? content : [{ text: content }]
}
];
}
const parts = content == null || typeof content === "string" ? [{ text: content?.toString() ?? "" }] : content.map((item) => {
Expand Down
5 changes: 4 additions & 1 deletion dist/main_node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,10 @@ function openAiMessageToGeminiMessage(messages) {
const result = messages.flatMap(({ role, content }) => {
if (role === "system") {
return [
{ role: "user", parts: typeof content !== "string" ? content : [{ text: content }] }
{
role: "user",
parts: typeof content !== "string" ? content : [{ text: content }]
}
];
}
const parts = content == null || typeof content === "string" ? [{ text: content?.toString() ?? "" }] : content.map((item) => {
Expand Down

0 comments on commit 9850312

Please sign in to comment.