From 55774cba6a84571f5de8632638379382362743f0 Mon Sep 17 00:00:00 2001 From: rmilyushkevich <24544571+rmilyushkevich@users.noreply.github.com> Date: Thu, 12 Nov 2026 07:03:59 +0000 Subject: [PATCH] chore(gen): refresh API specs --- GENERATION_REPORT.md | 2 +- cmd/gen_chat_gpt_chat.go | 17 +++++++++++------ cmd/gen_web_scraping.go | 6 +++--- internal/gen/spec-hash.txt | 2 +- pr-body.md | 16 +++++++--------- 5 files changed, 23 insertions(+), 20 deletions(-) diff --git a/GENERATION_REPORT.md b/GENERATION_REPORT.md index 8067ca3..db77be7 100644 --- a/GENERATION_REPORT.md +++ b/GENERATION_REPORT.md @@ -1,6 +1,6 @@ # Generation Report -Generated at: 2026-11-02T07:05:26Z +Generated at: 2026-11-12T07:03:59Z ## APIs generated (69) - chat-gpt-chat diff --git a/cmd/gen_chat_gpt_chat.go b/cmd/gen_chat_gpt_chat.go index a2f0017..119d582 100644 --- a/cmd/gen_chat_gpt_chat.go +++ b/cmd/gen_chat_gpt_chat.go @@ -19,8 +19,9 @@ var ( ) func newChatGptChatCmd() *cobra.Command { + var p_latVar float64 + var p_lonVar float64 var p_promptVar string - var p_timezoneVar string cmd := &cobra.Command{ Use: "chat-gpt-chat", @@ -37,10 +38,13 @@ func newChatGptChatCmd() *cobra.Command { return err } params := url.Values{} - params.Set("prompt", p_promptVar) - if c.Flags().Changed("timezone") { - params.Set("timezone", p_timezoneVar) + if c.Flags().Changed("lat") { + params.Set("lat", strconv.FormatFloat(p_latVar, 'f', -1, 64)) + } + if c.Flags().Changed("lon") { + params.Set("lon", strconv.FormatFloat(p_lonVar, 'f', -1, 64)) } + params.Set("prompt", p_promptVar) resp, err := cli.Do(ctx, "GET", "https://api.hasdata.com/scrape/chatgpt/chat", params, nil) if err != nil { return err @@ -48,9 +52,10 @@ func newChatGptChatCmd() *cobra.Command { return WriteResponse(c, resp) }, } - cmd.Flags().StringVar(&p_promptVar, "prompt", "What are the latest developments in the James Webb Space Telescope this month?", "prompt Prompt: The question or instruction to send to ChatGPT, up to 8000 characters. A prompt that asks about recent events makes ChatGPT search the web and return sources; a general-knowledge prompt is answered from the model alone. The prompt also decides the language of the answer — write it in the language you want back, or ask for one explicitly (\"Antworte auf Deutsch\"). (required)") + cmd.Flags().Float64Var(&p_latVar, "lat", 40.7128, "lat Latitude: GPS latitude of the user's location. Requires 'lon'.") + cmd.Flags().Float64Var(&p_lonVar, "lon", -74.006, "lon Longitude: GPS longitude of the user's location. Requires 'lat'.") + cmd.Flags().StringVar(&p_promptVar, "prompt", "Coffee near me", "prompt Prompt: The question or instruction to send to ChatGPT, up to 8000 characters. A prompt that asks about recent events makes ChatGPT search the web and return sources; a general-knowledge prompt is answered from the model alone. The prompt also decides the language of the answer — write it in the language you want back, or ask for one explicitly (\"Antworte auf Deutsch\"). (required)") _ = cmd.MarkFlagRequired("prompt") - cmd.Flags().StringVar(&p_timezoneVar, "timezone", "Europe/Berlin", "timezone Timezone: IANA time zone name, for example 'America/Chicago' or 'Europe/Berlin'. It sets what ChatGPT treats as the current date and time, which matters for prompts that say \"today\", \"this week\" or \"latest\".") return cmd } diff --git a/cmd/gen_web_scraping.go b/cmd/gen_web_scraping.go index 9d7fc29..5a92d71 100644 --- a/cmd/gen_web_scraping.go +++ b/cmd/gen_web_scraping.go @@ -72,7 +72,7 @@ func newWebScrapingCmd() *cobra.Command { } } if c.Flags().Changed("proxy-country") { - if err := validateEnumString("proxy-country", p_proxyCountryVar, []string{"US", "UK", "DE", "IE", "FR", "IT", "SE", "BR", "CA", "JP", "SG", "IN", "ID"}); err != nil { + if err := validateEnumString("proxy-country", p_proxyCountryVar, []string{"US", "UK", "DE", "IE", "FR", "IT", "SE", "BR", "CA", "JP", "SG", "IN", "ID", "IL"}); err != nil { return err } } @@ -240,9 +240,9 @@ func newWebScrapingCmd() *cobra.Command { _ = cmd.RegisterFlagCompletionFunc("output-format", func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) { return []string{"json", "html", "markdown", "text"}, cobra.ShellCompDirectiveNoFileComp }) - cmd.Flags().StringVar(&p_proxyCountryVar, "proxy-country", "US", "proxyCountry Proxy Country: Optional proxy country code. [allowed: US|UK|DE|IE|FR|IT|SE|BR|CA|JP|SG|IN|ID]") + cmd.Flags().StringVar(&p_proxyCountryVar, "proxy-country", "US", "proxyCountry Proxy Country: Optional proxy country code. [allowed: US|UK|DE|IE|FR|IT|SE|BR|CA|JP|SG|IN|ID|IL]") _ = cmd.RegisterFlagCompletionFunc("proxy-country", func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) { - return []string{"US", "UK", "DE", "IE", "FR", "IT", "SE", "BR", "CA", "JP", "SG", "IN", "ID"}, cobra.ShellCompDirectiveNoFileComp + return []string{"US", "UK", "DE", "IE", "FR", "IT", "SE", "BR", "CA", "JP", "SG", "IN", "ID", "IL"}, cobra.ShellCompDirectiveNoFileComp }) cmd.Flags().StringVar(&p_proxyTypeVar, "proxy-type", "datacenter", "proxyType Proxy Type: Type of proxy to use. [allowed: datacenter|residential]") _ = cmd.RegisterFlagCompletionFunc("proxy-type", func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) { diff --git a/internal/gen/spec-hash.txt b/internal/gen/spec-hash.txt index d20c6e8..48462c5 100644 --- a/internal/gen/spec-hash.txt +++ b/internal/gen/spec-hash.txt @@ -1 +1 @@ -1ae4931ea01969e96c19cba85bbbc3e4d3e5927257372d089d1986f90bc2d465 +b3ccee7d1e0db40e14cb1906680b904ec66b18bf940ab4e0d17763bb7edb461a diff --git a/pr-body.md b/pr-body.md index 867c40e..82996a7 100644 --- a/pr-body.md +++ b/pr-body.md @@ -1,18 +1,16 @@ ## Changes - GENERATION_REPORT.md | 6 ++-- - cmd/gen_booking_search.go | 7 +++- - cmd/gen_instagram_comments.go | 2 +- - cmd/gen_instagram_posts.go | 4 +-- - cmd/gen_instagram_profile.go | 2 +- - internal/gen/spec-hash.txt | 2 +- - pr-body.md | 79 ------------------------------------------- - 7 files changed, 15 insertions(+), 87 deletions(-) + GENERATION_REPORT.md | 2 +- + cmd/gen_chat_gpt_chat.go | 17 ++++++---- + cmd/gen_web_scraping.go | 6 ++-- + internal/gen/spec-hash.txt | 2 +- + pr-body.md | 84 ---------------------------------------------- + 5 files changed, 16 insertions(+), 95 deletions(-) ## Generation Report # Generation Report -Generated at: 2026-11-02T07:05:26Z +Generated at: 2026-11-12T07:03:59Z ## APIs generated (69) - chat-gpt-chat