OpenWiki Init
This commit is contained in:
1 parent
a048a37e6f
commit
4873b8dd66
37 files changed
+5130
-5
No files matched your search
@@ -30,14 +30,34 @@ jobs:
|
||||
# mermaid + jsdom are optional; they add high-fidelity validation of Mermaid diagrams. Remove if your wiki has none.
|
||||
run: npm install --global openwiki@0.5.2 mermaid@11.16.0 jsdom@29.1.1
|
||||
|
||||
- name: Validate OpenAI-compatible configuration
|
||||
env:
|
||||
OPENAI_COMPATIBLE_API_KEY: ${{ secrets.OPENAI_COMPATIBLE_API_KEY }}
|
||||
OPENAI_COMPATIBLE_BASE_URL: ${{ vars.OPENAI_COMPATIBLE_BASE_URL }}
|
||||
OPENWIKI_MODEL_ID: ${{ vars.OPENWIKI_MODEL_ID }}
|
||||
run: |
|
||||
test -n "$OPENAI_COMPATIBLE_API_KEY" || {
|
||||
echo "::error::Missing repository secret OPENAI_COMPATIBLE_API_KEY"
|
||||
exit 1
|
||||
}
|
||||
test -n "$OPENAI_COMPATIBLE_BASE_URL" || {
|
||||
echo "::error::Missing repository variable OPENAI_COMPATIBLE_BASE_URL"
|
||||
exit 1
|
||||
}
|
||||
test -n "$OPENWIKI_MODEL_ID" || {
|
||||
echo "::error::Missing repository variable OPENWIKI_MODEL_ID"
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Run OpenWiki
|
||||
id: openwiki
|
||||
continue-on-error: true
|
||||
run: openwiki code --update --print
|
||||
env:
|
||||
OPENWIKI_PROVIDER: openai
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
OPENWIKI_MODEL_ID: "gpt-5.6-terra"
|
||||
OPENWIKI_PROVIDER: openai-compatible
|
||||
OPENAI_COMPATIBLE_API_KEY: ${{ secrets.OPENAI_COMPATIBLE_API_KEY }}
|
||||
OPENAI_COMPATIBLE_BASE_URL: ${{ vars.OPENAI_COMPATIBLE_BASE_URL }}
|
||||
OPENWIKI_MODEL_ID: ${{ vars.OPENWIKI_MODEL_ID }}
|
||||
# Required for the LangSmith connector's code-mode pull to authenticate.
|
||||
# For extra workspaces, add OPENWIKI_LANGSMITH_API_KEY_2, _3, ... as repo
|
||||
# secrets and env entries here.
|
||||
|
||||
Reference in new issue
Block a user