From 79582ccd42040e69bfdac65abed1018b455b08e0 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Thu, 18 Jul 2024 13:25:11 -0700 Subject: [PATCH] don't add comment about mime --- genai/example_test.go | 4 ---- genai/internal/samples/docs-snippets_test.go | 4 ---- 2 files changed, 8 deletions(-) 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"