Skip to content

Commit 48a68cb

Browse files
feat(api): api update
1 parent ad50292 commit 48a68cb

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 38
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b5a46cf886759797353b250da971e46cf66804b825ded9c51609f34d72d1169c.yml
3-
openapi_spec_hash: 1947de2a731ddab05bfb781f37cd42b6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-3ecc6285243f60f7619d543cac59991015fbb0a156648741e7e42e619e0cbc5c.yml
3+
openapi_spec_hash: 0130f29a501366c63cbd3a446c5eb109
44
config_hash: bff282047fafdad771fb7ec685f56944

pkg/cmd/brand.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ var brandRetrieveSimplified = cli.Command{
154154

155155
var brandSearch = cli.Command{
156156
Name: "search",
157-
Usage: "Search brands by name or domain and get back up to 10 lightweight matches\n(domain, name, logo), most popular first: by Tranco rank, then market cap for\nbrands outside the Tranco list, with text relevance breaking ties. Matching is\nprefix-based with no typo tolerance, so it is suited to autocomplete. Only\nbrands already in the Context.dev index are returned — use /brand/retrieve to\nfetch (and index) a specific domain. Free on Pro and Scale plans; costs 1 credit\nper request on the Free and Starter plans.",
157+
Usage: "Search brands by name or domain and get back up to 10 lightweight matches\n(domain, name, logo). Name matches rank ahead of domain matches; within each\ngroup the most popular brands come first: by Tranco rank, then market cap for\nbrands outside the Tranco list, with text relevance breaking ties. Matching is\nprefix-based with no typo tolerance, so it is suited to autocomplete. Only\nbrands already in the Context.dev index are returned — use /brand/retrieve to\nfetch (and index) a specific domain. Free on Pro and Scale plans; costs 1 credit\nper request on the Free and Starter plans.",
158158
Suggest: true,
159159
Flags: []cli.Flag{
160160
&requestflag.Flag[string]{

pkg/cmd/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var parseHandle = requestflag.WithInnerFlags(cli.Command{
5151
},
5252
&requestflag.Flag[any]{
5353
Name: "ocr",
54-
Usage: "When true for PDF inputs, detect and OCR images embedded in the selected pages, inserting recognized text at each image's position in page reading order while preserving the PDF text layer. pdf.start/pdf.end limit the inclusive page range. When false, no OCR runs.",
54+
Usage: "When true for PDF inputs, OCR the selected pages that have no usable text layer (scans), replacing each recovered page's text with the OCR result while pages with a real text layer keep it. pdf.start/pdf.end limit the inclusive page range. Billed at 1 credit per page OCR actually recovered, on top of the base request cost. When false, no OCR runs.",
5555
Default: false,
5656
QueryPath: "ocr",
5757
},

pkg/cmd/web.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
583583
},
584584
&requestflag.InnerFlag[bool]{
585585
Name: "pdf.ocr",
586-
Usage: "When true, detect and OCR images embedded in the selected PDF pages, inserting recognized text at each image's position in page reading order while preserving the PDF text layer. This is separate from automatic scanned-PDF OCR fallback.",
586+
Usage: "When true, OCR the selected PDF pages that have no usable text layer (scans), replacing each recovered page's text with the OCR result while pages with a real text layer keep it. Billed at 1 credit per page OCR actually recovered, on top of the base request cost.",
587587
InnerField: "ocr",
588588
},
589589
&requestflag.InnerFlag[bool]{
@@ -698,7 +698,7 @@ var webWebScrapeHTML = requestflag.WithInnerFlags(cli.Command{
698698
},
699699
&requestflag.InnerFlag[any]{
700700
Name: "pdf.ocr",
701-
Usage: "When true, detect and OCR images embedded in the selected PDF pages, inserting recognized text at each image's position in page reading order while preserving the PDF text layer. When false, no OCR runs.",
701+
Usage: "When true, OCR the selected PDF pages that have no usable text layer (scans), replacing each recovered page's text with the OCR result while pages with a real text layer keep it. Billed at 1 credit per page OCR actually recovered, on top of the base request cost. When false, no OCR runs.",
702702
InnerField: "ocr",
703703
},
704704
&requestflag.InnerFlag[any]{
@@ -912,7 +912,7 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{
912912
},
913913
&requestflag.InnerFlag[any]{
914914
Name: "pdf.ocr",
915-
Usage: "When true, detect and OCR images embedded in the selected PDF pages, inserting recognized text at each image's position in page reading order while preserving the PDF text layer. When false, no OCR runs.",
915+
Usage: "When true, OCR the selected PDF pages that have no usable text layer (scans), replacing each recovered page's text with the OCR result while pages with a real text layer keep it. Billed at 1 credit per page OCR actually recovered, on top of the base request cost. When false, no OCR runs.",
916916
InnerField: "ocr",
917917
},
918918
&requestflag.InnerFlag[any]{

0 commit comments

Comments
 (0)