diff --git a/genai/example_test.go b/genai/example_test.go index d074951..6c294b9 100644 --- a/genai/example_test.go +++ b/genai/example_test.go @@ -50,10 +50,6 @@ func uploadFile(ctx context.Context, client *genai.Client, path string) (*genai. } defer osf.Close() - // The service detects the MIME type of uploaded data automatically, but - // sometimes we have to specify it manually. One example is when text/* MIME - // types are considered (as it may be difficult to automatically detect the - // exact sub-type of a text file). opts := &genai.UploadFileOptions{} if filepath.Ext(path) == ".txt" { opts.MIMEType = "text/plain" diff --git a/genai/internal/samples/docs-snippets_test.go b/genai/internal/samples/docs-snippets_test.go index 0bc1783..e81273e 100644 --- a/genai/internal/samples/docs-snippets_test.go +++ b/genai/internal/samples/docs-snippets_test.go @@ -50,10 +50,6 @@ func uploadFile(ctx context.Context, client *genai.Client, path string) (*genai. } defer osf.Close() - // The service detects the MIME type of uploaded data automatically, but - // sometimes we have to specify it manually. One example is when text/* MIME - // types are considered (as it may be difficult to automatically detect the - // exact sub-type of a text file). opts := &genai.UploadFileOptions{} if filepath.Ext(path) == ".txt" { opts.MIMEType = "text/plain"