Skip to content

Commit 389f751

Browse files
committed
test
1 parent f0856af commit 389f751

File tree

3 files changed

+98
-3
lines changed

3 files changed

+98
-3
lines changed

images/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ FROM ghcr.io/rocker-org/ml-spatial
33
# Config will be populated by env vars and moved to HOME via start script: (hub-dependent)
44
COPY continue/config.json /opt/share/continue/config.json
55
COPY continue/config.ts /opt/share/continue/config.ts
6-
#COPY jupyter_ai/config.json /opt/share/jupyter_ai/config.json
6+
7+
COPY jupyter_ai/config.json /opt/share/jupyter/jupyter_ai/config.json
8+
# COPY jupyter_ai/config_schema.json /opt/share/jupyter_ai/config_schema.json
9+
RUN chmod -R jovyan:users /opt/share
710

811
RUN install2.r rsvg nimble
912

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"title": "Jupyter AI configuration",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"$comment": "Default values are sourced from `config_manager.py`.",
5+
"type": "object",
6+
"properties": {
7+
"model_provider_id": {
8+
"$comment": "Language model global ID.",
9+
"type": [
10+
"string",
11+
"null"
12+
],
13+
"default": null,
14+
"readOnly": false
15+
},
16+
"embeddings_provider_id": {
17+
"$comment": "Embedding model global ID.",
18+
"type": [
19+
"string",
20+
"null"
21+
],
22+
"default": null,
23+
"readOnly": false
24+
},
25+
"completions_model_provider_id": {
26+
"$comment": "Language model global ID for completions.",
27+
"type": [
28+
"string",
29+
"null"
30+
],
31+
"default": null,
32+
"readOnly": false
33+
},
34+
"api_keys": {
35+
"$comment": "Dictionary of API keys, mapping key names to key values.",
36+
"type": "object",
37+
"default": {}
38+
},
39+
"send_with_shift_enter": {
40+
"$comment": "Whether to send a message via Shift-Enter instead of Enter.",
41+
"type": "boolean",
42+
"default": false,
43+
"readOnly": false
44+
},
45+
"fields": {
46+
"$comment": "Dictionary of model-specific fields, mapping LM GIDs to sub-dictionaries of field key-value pairs.",
47+
"type": "object",
48+
"default": {},
49+
"patternProperties": {
50+
"^.*$": {
51+
"anyOf": [
52+
{
53+
"type": "object"
54+
}
55+
]
56+
}
57+
},
58+
"additionalProperties": false
59+
},
60+
"embeddings_fields": {
61+
"$comment": "Dictionary of model-specific fields, mapping LM GIDs to sub-dictionaries of field key-value pairs for embeddings.",
62+
"type": "object",
63+
"default": {},
64+
"patternProperties": {
65+
"^.*$": {
66+
"anyOf": [
67+
{
68+
"type": "object"
69+
}
70+
]
71+
}
72+
},
73+
"additionalProperties": false
74+
},
75+
"completions_fields": {
76+
"$comment": "Dictionary of model-specific fields, mapping LM GIDs to sub-dictionaries of field key-value pairs for completions.",
77+
"type": "object",
78+
"default": {},
79+
"patternProperties": {
80+
"^.*$": {
81+
"anyOf": [
82+
{
83+
"type": "object"
84+
}
85+
]
86+
}
87+
},
88+
"additionalProperties": false
89+
}
90+
}
91+
}
92+
93+

jupyterhub/thelio.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ helm upgrade --cleanup-on-fail \
1111
--version=4.0.0 \
1212
--timeout 90m0s \
1313
--values thelio-config.yaml \
14-
--values private-config.yaml \
15-
--values jupyterai.yaml
14+
--values private-config.yaml
1615

0 commit comments

Comments
 (0)