chore: generate
This commit is contained in:
@@ -137,7 +137,11 @@ function resourceLinkToPart(link: ResourceLink): PromptPart {
|
|||||||
return { type: "text", text: parsed.text }
|
return { type: "text", text: parsed.text }
|
||||||
}
|
}
|
||||||
|
|
||||||
function uriToFilePart(uri: string, mime: string, filename?: string): MessageV2.FilePartInput | MessageV2.TextPartInput {
|
function uriToFilePart(
|
||||||
|
uri: string,
|
||||||
|
mime: string,
|
||||||
|
filename?: string,
|
||||||
|
): MessageV2.FilePartInput | MessageV2.TextPartInput {
|
||||||
try {
|
try {
|
||||||
if (uri.startsWith("file://")) {
|
if (uri.startsWith("file://")) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user