mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-27 00:31:00 +00:00
chore: generate
This commit is contained in:
parent
7a5a997173
commit
d18eab5b85
1 changed files with 5 additions and 1 deletions
|
|
@ -137,7 +137,11 @@ function resourceLinkToPart(link: ResourceLink): PromptPart {
|
|||
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 {
|
||||
if (uri.startsWith("file://")) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue