File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ import (
5656func main () {
5757 ctx := context.Background ()
5858 client , err := kreuzbergcloud.New (
59- kreuzbergcloud.WithAPIKey (os.Getenv (" KREUZBERG_API_KEY " )),
59+ kreuzbergcloud.WithAPIKey (os.Getenv (" XBERG_API_KEY " )),
6060 )
6161 if err != nil {
6262 log.Fatal (err)
@@ -96,7 +96,7 @@ import (
9696func main () {
9797 ctx := context.Background ()
9898 client , err := kreuzbergcloud.New (
99- kreuzbergcloud.WithAPIKey (os.Getenv (" KREUZBERG_API_KEY " )),
99+ kreuzbergcloud.WithAPIKey (os.Getenv (" XBERG_API_KEY " )),
100100 )
101101 if err != nil {
102102 log.Fatal (err)
Original file line number Diff line number Diff line change 22//
33// Run with:
44//
5- // KREUZBERG_API_KEY =kc_... dart run example/main.dart
5+ // XBERG_API_KEY =kc_... dart run example/main.dart
66//
77// Submits a small inline document, polls the resulting job to completion, and
88// prints the extracted Markdown.
@@ -13,9 +13,9 @@ import 'dart:io';
1313import 'package:kreuzberg_cloud_sdk/kreuzberg_cloud_sdk.dart' ;
1414
1515Future <void > main () async {
16- final apiKey = Platform .environment['KREUZBERG_API_KEY ' ];
16+ final apiKey = Platform .environment['XBERG_API_KEY ' ];
1717 if (apiKey == null || apiKey.isEmpty) {
18- stderr.writeln ('Set KREUZBERG_API_KEY in the environment.' );
18+ stderr.writeln ('Set XBERG_API_KEY in the environment.' );
1919 exit (2 );
2020 }
2121
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ import (
5656func main () {
5757 ctx := context.Background ()
5858 client , err := kreuzbergcloud.New (
59- kreuzbergcloud.WithAPIKey (os.Getenv (" KREUZBERG_API_KEY " )),
59+ kreuzbergcloud.WithAPIKey (os.Getenv (" XBERG_API_KEY " )),
6060 )
6161 if err != nil {
6262 log.Fatal (err)
@@ -96,7 +96,7 @@ import (
9696func main () {
9797 ctx := context.Background ()
9898 client , err := kreuzbergcloud.New (
99- kreuzbergcloud.WithAPIKey (os.Getenv (" KREUZBERG_API_KEY " )),
99+ kreuzbergcloud.WithAPIKey (os.Getenv (" XBERG_API_KEY " )),
100100 )
101101 if err != nil {
102102 log.Fatal (err)
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ pnpm add @kreuzberg/cloud
4949import { KreuzbergCloud } from " @kreuzberg/cloud" ;
5050import { readFile } from " node:fs/promises" ;
5151
52- const client = new KreuzbergCloud ({ apiKey: process .env .KREUZBERG_API_KEY ! });
52+ const client = new KreuzbergCloud ({ apiKey: process .env .XBERG_API_KEY ! });
5353
5454const data = await readFile (" invoice.pdf" );
5555const result = await client .extractAndWait ({
@@ -64,7 +64,7 @@ console.log(result.result?.content);
6464import { KreuzbergCloud } from " @kreuzberg/cloud" ;
6565import { readFile } from " node:fs/promises" ;
6666
67- const client = new KreuzbergCloud ({ apiKey: process .env .KREUZBERG_API_KEY ! });
67+ const client = new KreuzbergCloud ({ apiKey: process .env .XBERG_API_KEY ! });
6868
6969const files = await Promise .all (
7070 [" a.pdf" , " b.pdf" , " c.pdf" ].map (async (name ) => ({
You can’t perform that action at this time.
0 commit comments