File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed
Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ Use TELEGRAM_API_TOKEN env name
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const TgbotAgentForm: FC<TgbotAgentFormProps> = ({
2424 defaultValues : {
2525 secrets : {
2626 OLLAMA_MODEL : '' ,
27- TOKEN : '' ,
27+ TELEGRAM_API_TOKEN : '' ,
2828 OLLAMA_SYSTEM_PROMPT : '' ,
2929 } ,
3030 ...inputs ,
@@ -51,7 +51,7 @@ export const TgbotAgentForm: FC<TgbotAgentFormProps> = ({
5151
5252 < InputFormField
5353 control = { form . control }
54- name = "secrets.TOKEN "
54+ name = "secrets.TELEGRAM_API_TOKEN "
5555 label = "Telegram API token"
5656 placeholder = "Paste or type API token here"
5757 type = "password"
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export const tgbotFormSchema = z.object({
138138 OLLAMA_MODEL : z . string ( ) . min ( 1 , {
139139 message : 'Model is required.' ,
140140 } ) ,
141- TOKEN : z
141+ TELEGRAM_API_TOKEN : z
142142 . string ( )
143143 . min ( 1 , {
144144 message : 'Token is required.' ,
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ services:
1212 image : " ghcr.io/oasisprotocol/demo-rofl-tgbot:ollama"
1313 platform : linux/amd64
1414 environment :
15- - TOKEN =${TOKEN }
15+ - TELEGRAM_API_TOKEN =${TELEGRAM_API_TOKEN }
1616 - OLLAMA_MODEL=${OLLAMA_MODEL}
1717 - OLLAMA_SYSTEM_PROMPT=${OLLAMA_SYSTEM_PROMPT}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ secrets:
3535 options :
3636 - " gemma3:1b " : " Gemma 3 1B"
3737 - " deepseek-r1:1.5b " : " Deepseek 1.5B"
38- - name : TOKEN
38+ - name : TELEGRAM_API_TOKEN
3939 title : " Telegram API token"
4040 description : " Request your Telegram bot API token by sending `/newbot` command to the @BotFather account"
4141 type : text
You can’t perform that action at this time.
0 commit comments