File size: 882 Bytes
287a0bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {ChromaClient} from "../src/ChromaClient";
import { CloudClient } from "../src/CloudClient";

const PORT = process.env.PORT || "8000";
const URL = "http://localhost:" + PORT;
export const chromaBasic = new ChromaClient({path: URL, auth: {provider: "basic", credentials: "admin:admin"}});
export const chromaTokenDefault = new ChromaClient({path: URL, auth: {provider: "token", credentials: "test-token"}});
export const chromaTokenBearer = new ChromaClient({
    path: URL,
    auth: {provider: "token", credentials: "test-token", providerOptions: {headerType: "AUTHORIZATION"}}
});
export const chromaTokenXToken = new ChromaClient({
    path: URL,
    auth: {provider: "token", credentials: "test-token", providerOptions: {headerType: "X_CHROMA_TOKEN"}}
});
export const cloudClient = new CloudClient({apiKey: "test-token", cloudPort: PORT, cloudHost: "http://localhost"})