Skip to content

Commit c302203

Browse files
committed
Revert "feat: first sample app"
This reverts commit fa846bd.
1 parent fa846bd commit c302203

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/instrumentation-chromadb/src/instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export class ChromaDBInstrumentation extends InstrumentationBase<any> {
3434

3535
protected init(): InstrumentationModuleDefinition<any> {
3636
const module = new InstrumentationNodeModuleDefinition<any>(
37-
"chromadb",
38-
[">=1.8.1"],
37+
"cohere-ai",
38+
[">=7.7.5"],
3939
this.wrap.bind(this),
4040
this.unwrap.bind(this),
4141
);

packages/sample-app/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"scripts": {
66
"build": "tsc --build tsconfig.json",
77
"run:cohere": "npm run build && node dist/src/sample_cohere.js",
8-
"run:chromadb": "npm run build && node dist/src/sample_chromadb.js",
98
"run:bedrock:ai21": "npm run build && node dist/src/bedrock/ai21.js",
109
"run:bedrock:amazon": "npm run build && node dist/src/bedrock/amazon.js",
1110
"run:bedrock:anthropic": "npm run build && node dist/src/bedrock/anthropic.js",
@@ -40,8 +39,7 @@
4039
"cohere-ai": "^7.7.5",
4140
"langchain": "^0.1.7",
4241
"llamaindex": "^0.0.40",
43-
"openai": "^4.12.4",
44-
"chromadb": "^1.8.1"
42+
"openai": "^4.12.4"
4543
},
4644
"private": true,
4745
"gitHead": "ef1e70d6037f7b5c061056ef2be16e3f55f02ed5"

packages/sample-app/src/sample_chromadb.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { ChromaClient, OpenAIEmbeddingFunction, Collection } from "chromadb";
44
const client = new ChromaClient();
55

66
const embedder = new OpenAIEmbeddingFunction({
7-
openai_api_key:
8-
process.env.OPENAI_API_KEY ??
9-
"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",
7+
openai_api_key: process.env.OPENAI_API_KEY ?? "",
108
});
119

1210
traceloop.initialize({

0 commit comments

Comments
 (0)