Skip to content

Commit eeb6987

Browse files
committed
Update via AirCode on Oct 10, 2023
1 parent d9db64c commit eeb6987

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

alternative/azure-openai-backend/aircode.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Documate backend Azure OpenAI",
33
"runtime": "node/v18",
4-
"retion": "US",
4+
"region": "US",
55
"envs": [
66
"AZURE_OPENAI_DEPLOYMENT",
77
"AZURE_OPENAI_ENDPOINT",

alternative/azure-openai-backend/ask.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const {OpenAIClient, AzureKeyCredential} = require("@azure/openai");
44
const { create, insertMultiple, searchVector } = require('@orama/orama');
55
const tokenizer = require('gpt-3-encoder');
66

7-
const MAX_CONTEXT_TOKEN = 1500;
7+
const MAX_CONTEXT_TOKEN = 5000;
88
const PagesTable = aircode.db.table('pages');
99

1010
const {env} = process;

alternative/azure-openai-backend/upload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = async function(params, context) {
8585
return { ok: 1 };
8686
} else {
8787
// Delete the exist one since we will regenerate it
88-
await PagesTable.where({ project, path });
88+
await PagesTable.where({ project, path }).delete();
8989
}
9090
}
9191

0 commit comments

Comments
 (0)