@cloudron/tegel 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/opencode.json +17 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import lastMile from '@cloudron/connect-lastmile';
|
|
|
7
7
|
import { HttpError } from '@cloudron/connect-lastmile';
|
|
8
8
|
import * as oidc from './src/oidc.js';
|
|
9
9
|
|
|
10
|
-
export async function createExpressApp({ oidcConfig }) {
|
|
10
|
+
export async function createExpressApp({ oidcConfig, jsonBodySizeLimit = '25mb' }) {
|
|
11
11
|
await oidc.initOIDC(oidcConfig);
|
|
12
12
|
|
|
13
13
|
const app = express();
|
|
@@ -16,7 +16,7 @@ export async function createExpressApp({ oidcConfig }) {
|
|
|
16
16
|
app.set('json spaces', 2);
|
|
17
17
|
app.set('query parser', 'simple');
|
|
18
18
|
|
|
19
|
-
app.use(express.json());
|
|
19
|
+
app.use(express.json({ limit: jsonBodySizeLimit }));
|
|
20
20
|
|
|
21
21
|
const FileStore = FileStoreFactory(session);
|
|
22
22
|
const sessionStorePath = process.env.CLOUDRON ? '/app/data/.session.store' : '/tmp/session.store';
|
package/opencode.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/config.json",
|
|
3
|
+
"provider": {
|
|
4
|
+
"ollama": {
|
|
5
|
+
"npm": "@ai-sdk/openai-compatible",
|
|
6
|
+
"name": "Ollama (local)",
|
|
7
|
+
"options": {
|
|
8
|
+
"baseURL": "http://209.38.98.50:11434/v1"
|
|
9
|
+
},
|
|
10
|
+
"models": {
|
|
11
|
+
"gpt-oss:120b": {
|
|
12
|
+
"name": "gpt-oss:120b"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|