Skip to content

Commit c08d4bc

Browse files
committed
Merge branch 'main' of https://github.com/appwrite/assistant into main
2 parents fd8a2d5 + 66d2a5a commit c08d4bc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: docker/build-push-action@v4
4343
with:
4444
context: .
45-
platforms: linux/amd64
45+
platforms: linux/amd64,linux/arm64
4646
push: true
4747
tags: ${{ steps.meta.outputs.tags }}
4848
labels: ${{ steps.meta.outputs.labels }}

embeddings.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ const sources = globSync("docs/*.json").map((filename) => {
4040

4141
export const search_index = FaissStore.fromDocuments(
4242
await chunk_sources(sources),
43-
new OpenAIEmbeddings()
43+
new OpenAIEmbeddings({
44+
openAIApiKey: process.env._APP_ASSISTANT_OPENAI_API_KEY,
45+
})
4446
);
4547
export const getChain = (res) => {
4648
return loadQAStuffChain(
4749
new OpenAIChat({
50+
openAIApiKey: process.env._APP_ASSISTANT_OPENAI_API_KEY,
4851
temperature: 0.6,
4952
max_tokens: 1000,
5053
streaming: true,

0 commit comments

Comments
 (0)