Skip to content

Conversation

hugoaguirre
Copy link
Contributor

@hugoaguirre hugoaguirre commented Sep 23, 2025

Previously, .prompt files were not supporting gs:// and http(s): URIs

Checklist (if applicable):

@github-actions github-actions bot added the go label Sep 23, 2025
@hugoaguirre hugoaguirre marked this pull request as ready for review September 23, 2025 15:51
resp, err := prompt.Execute(ctx)
resp, err := prompt.Execute(ctx,
ai.WithModelName("googleai/gemini-2.5-pro"),
ai.WithInput(map[string]any{"videoUrl": "https://www.youtube.com/watch?v=K-hY0E6cGfo video/mp4"}),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is providing the content type like this really standard?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how it got implemented in dotprompt package for both JS and Go. The parser splits the URI in two, the right side is always the contentType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants