mirror of
https://github.com/Direct-Dev-Ru/go-lcg.git
synced 2025-11-16 01:29:55 +00:00
add https server functionality - befor auth functionality implementation
This commit is contained in:
7
shell-code/run-proxy-max.sh
Normal file
7
shell-code/run-proxy-max.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
LCG_PROVIDER=proxy LCG_HOST=https://direct-dev.ru \
|
||||
LCG_MODEL=GigaChat-2-Max \
|
||||
LCG_JWT_TOKEN=$(go-ansible-vault --key $(cat ~/.config/gak) -i ~/.config/jwt.direct-dev.ru get -m JWT_TOKEN -q) \
|
||||
go run . $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
|
||||
7
shell-code/run-proxy.sh
Normal file
7
shell-code/run-proxy.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
LCG_PROVIDER=proxy LCG_HOST=https://direct-dev.ru \
|
||||
LCG_MODEL=GigaChat-2 \
|
||||
LCG_JWT_TOKEN=$(go-ansible-vault --key $(cat ~/.config/gak) -i ~/.config/jwt.direct-dev.ru get -m JWT_TOKEN -q) \
|
||||
go run . $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
LCG_PROVIDER=proxy LCG_HOST=http://localhost:8080 LCG_MODEL=GigaChat-2-Max LCG_JWT_TOKEN=$(go-ansible-vault -a -i shell-code/jwt.admin.token get -m 'JWT_TOKEN' -q) go run . $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
|
||||
LCG_PROVIDER=proxy LCG_HOST=https://direct-dev.ru LCG_MODEL=GigaChat-2-Max LCG_JWT_TOKEN=$(go-ansible-vault --key $(cat ~/.config/gak) -i ~/.config/jwt.direct-dev.ru get -m 'JWT_TOKEN' -q) go run . [your question here]
|
||||
Reference in New Issue
Block a user