test ai-blog
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
set -e
|
||||
|
||||
cb=ai.syui.log
|
||||
cl=($cb.chat $cb.user $cb )
|
||||
cl=($cb.chat)
|
||||
f=~/.config/syui/ai/log/config.json
|
||||
|
||||
default_collection="ai.syui.log.chat"
|
||||
default_pds=bsky.social
|
||||
default_pds=syu.is
|
||||
default_did=`cat $f|jq -r .admin.did`
|
||||
default_token=`cat $f|jq -r .admin.access_jwt`
|
||||
default_refresh=`cat $f|jq -r .admin.refresh_jwt`
|
||||
|
14
scpt/run.zsh
14
scpt/run.zsh
@@ -43,6 +43,17 @@ function _oauth_build() {
|
||||
#npm run preview
|
||||
}
|
||||
|
||||
function _ai_conversation_build() {
|
||||
cd $d/ai-conversation
|
||||
nvm use 21
|
||||
npm i
|
||||
npm run build
|
||||
rm -rf $myblog/static/ai-assets
|
||||
mkdir -p $myblog/static/ai-assets
|
||||
cp -rf dist/assets/* $myblog/static/ai-assets/
|
||||
cp $d/ai-conversation/dist/index.html $myblog/templates/ai-conversation-assets.html
|
||||
}
|
||||
|
||||
function _server_comment() {
|
||||
cargo build
|
||||
cp -rf $ailog $CARGO_HOME/bin/
|
||||
@@ -64,6 +75,9 @@ case "${1:-serve}" in
|
||||
oauth|o)
|
||||
_oauth_build
|
||||
;;
|
||||
ai|a)
|
||||
_ai_conversation_build
|
||||
;;
|
||||
n)
|
||||
oauth=$d/oauth_old
|
||||
_oauth_build
|
||||
|
Reference in New Issue
Block a user