Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-release demo #14

Merged
merged 166 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
3770e33
feat: introduce registries
shev-titan Apr 3, 2024
2c65008
feat: marketplace, session router
shev-titan Apr 5, 2024
b88e1e3
feat: improve querying and indexes
shev-titan Apr 8, 2024
346de1b
feat: improve session router, add staking
shev-titan Apr 10, 2024
d361d9e
fix: update registries and add tests
shev-titan Apr 15, 2024
efe14ed
feat: add golang bindings
shev-titan Apr 15, 2024
dedbe87
feat: enable local node
shev-titan Apr 15, 2024
31ecbc1
feat: staking daily stipend contract
shev-titan Apr 16, 2024
14bb4a7
feat: update marketplace contract
shev-titan Apr 18, 2024
a5e1983
fix: staking two times per day interval was counting only latest
shev-titan Apr 18, 2024
abf3e51
feat: session router open/close session impl
shev-titan Apr 19, 2024
5bb731a
feat: fix session cloesout and provider claiming
shev-titan Apr 19, 2024
ffbbea4
fix: refactor to use openzeppelin recover and hash utils
shev-titan Apr 22, 2024
4444849
fix: block two sessions with the same bid
shev-titan Apr 24, 2024
f46116a
test: more test cases
shev-titan Apr 24, 2024
becbbad
feat: merge marketplace, staking and session router into a single con…
shev-titan Apr 25, 2024
8f0d4de
feat: rewrite contract to be a diamond
shev-titan Apr 30, 2024
e7dd779
Merge branch 'main' into feat/registries
shev-titan Apr 30, 2024
e479283
feat: fix build and local setup
shev-titan Apr 30, 2024
7f8b96b
fix: format contracts uniformly
shev-titan Apr 30, 2024
32d0053
fix: add format command
shev-titan Apr 30, 2024
9504ad8
fix: mapping response
shev-titan Apr 30, 2024
08c0d4d
fix: move getSelectors to diamond.ts
shev-titan Apr 30, 2024
0d17e0f
Merge branch 'main' into feat/registries
srt0422 Apr 30, 2024
5a47fbd
feat: integrate distribution recalculation from L1
shev-titan May 1, 2024
295b2cf
fix: distribution library
shev-titan May 1, 2024
172a4d8
fix: deploy provider
shev-titan May 1, 2024
1314e74
feat: use diamond contract for registries
alex-sandrk May 1, 2024
ef15dd4
fix: non existing provider test case
shev-titan May 1, 2024
bd53a83
CI: add Windows release (completely untested)
loonerin Apr 30, 2024
4da2d8a
Merge pull request #40 from Lumerin-protocol/feat-ci-windoze
loonerin May 1, 2024
dfc8ac4
CI: fix win release
loonerin May 1, 2024
8f5510b
Merge pull request #41 from Lumerin-protocol/ci-fix-win
loonerin May 1, 2024
1916b07
wip: stake per session rewrite
shev-titan May 2, 2024
cf0cdd5
CI: add proxy-router go cache
loonerin May 2, 2024
70a12f2
Merge pull request #42 from Lumerin-protocol/feat-ci-gocache
loonerin May 2, 2024
4c591f5
feat: finish session router calls
shev-titan May 3, 2024
e7759fe
feat: open session in blockchain
alex-sandrk May 5, 2024
85e90f3
fix: renaming issue
shev-titan May 6, 2024
3b03285
Merge branch 'feat/registries' of github.com:Lumerin-protocol/Morpheu…
alex-sandrk May 6, 2024
3ace01e
Feature llm integration streaming (#43)
srt0422 May 6, 2024
f5ea0a9
fix scott's merge which broke build
loonerin May 6, 2024
969349d
feat: open session flow
alex-sandrk May 7, 2024
94f1b97
Merge branch 'main' of github.com:Lumerin-protocol/Morpheus-Lumerin-N…
alex-sandrk May 7, 2024
449c205
CI: ui-desktop build/release
loonerin May 6, 2024
da2f35c
Merge pull request #46 from Lumerin-protocol/feat-ci-node
loonerin May 7, 2024
3998af6
feat: prompt streaming
alex-sandrk May 8, 2024
c9e885c
feat: integrate distribution recalculation from L1
shev-titan May 1, 2024
3cad016
fix: distribution library
shev-titan May 1, 2024
73b9569
fix: deploy provider
shev-titan May 1, 2024
cf4058f
fix: non existing provider test case
shev-titan May 1, 2024
74d6bbd
wip: stake per session rewrite
shev-titan May 2, 2024
30c6526
feat: finish session router calls
shev-titan May 3, 2024
e525380
fix: renaming issue
shev-titan May 6, 2024
d683865
fix: deployment/verification script
shev-titan May 7, 2024
4758bec
fix: format sources
shev-titan May 7, 2024
fb97515
fix: last day closeout reward should be capped to stipend
shev-titan May 7, 2024
1f1d2d2
fix: upgrade script
shev-titan May 8, 2024
4bda8a1
feat: facet update script update
shev-titan May 8, 2024
8c0e854
Merge branch 'dev' into feature/prompt-streaming-2
shev-titan May 8, 2024
1a39af6
Merge pull request #49 from Lumerin-protocol/feature/prompt-streaming-2
lsheva May 8, 2024
60003d5
fix: modelGetAll indexes
shev-titan May 8, 2024
91b96bb
Updated contracts abis
bohdan-titan May 8, 2024
5cdf3ff
Changed contract for bids
bohdan-titan May 8, 2024
bd34563
Changed models contract
bohdan-titan May 8, 2024
0293386
Changed background
bohdan-titan May 8, 2024
bdf838e
feat: make response of /providers for friendly
alex-sandrk May 9, 2024
996749d
fix: add 0x prefix for ids
alex-sandrk May 9, 2024
7f22028
fix: send interval server error
alex-sandrk May 9, 2024
6a28f9d
Merge pull request #50 from Lumerin-protocol/feat/providers-api
alex-sandrk May 9, 2024
ee3786f
feat: validate signature of each streaming chunk
alex-sandrk May 9, 2024
dc2bc43
Merge pull request #51 from Lumerin-protocol/feat/streaming-signature…
alex-sandrk May 9, 2024
3faa295
Added streaming PIC
bohdan-titan May 8, 2024
3265b17
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 9, 2024
39b575e
Fixed buffer issue
bohdan-titan May 9, 2024
6808dd8
launcher: make findConfig more aggressive (#52)
loonerin May 9, 2024
77268ae
WIP: Refactored UX flow
bohdan-titan May 9, 2024
8828a69
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 9, 2024
f5e2a3b
ci: build on PR open/reopen/sync
loonerin May 10, 2024
d997fe0
Removed hardcode for prompt
bohdan-titan May 10, 2024
0a2c485
Added context to chat
bohdan-titan May 10, 2024
9a80c40
do not throw error on unknown event
alex-sandrk May 10, 2024
f844c25
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
alex-sandrk May 10, 2024
5b068ee
LTS
bohdan-titan May 10, 2024
e9ee38f
Merge pull request #54 from Lumerin-protocol/ci-run-on-pr
loonerin May 10, 2024
be8a647
launcher: add exe path as cmd cwd
loonerin May 10, 2024
82e37e4
ci: increase yarn install net timeout
loonerin May 10, 2024
cc1061c
Improvement wallet backend (#57)
srt0422 May 12, 2024
c205f29
feat: close session endpoint
alex-sandrk May 13, 2024
c588bf1
Merge pull request #59 from Lumerin-protocol/feat/close-session-endpoint
alex-sandrk May 13, 2024
053db15
Merge pull request #56 from Lumerin-protocol/ci-yarn-timeout
loonerin May 13, 2024
499c914
Merge pull request #55 from Lumerin-protocol/launch-mac-dir
loonerin May 13, 2024
94278d8
Dev (#53)
srt0422 May 13, 2024
94b3080
proxy: remove logs folder from .env.example
loonerin May 14, 2024
73395c7
Merge pull request #60 from Lumerin-protocol/pr-logs-win
loonerin May 14, 2024
ce3e348
feat: encrypt ai messages
alex-sandrk May 16, 2024
e85815a
fix: remove log
alex-sandrk May 16, 2024
7b3e6cd
Merge pull request #63 from Lumerin-protocol/feat/chunk-encryption
alex-sandrk May 16, 2024
e640655
feat: enable unpacking custom solidity errors
shev-titan May 16, 2024
98e1f88
fix: address botreview concerns
shev-titan May 16, 2024
fdeda54
Changed hard-coded value
bohdan-titan May 16, 2024
d934331
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 16, 2024
bf80e4e
Merge branch 'main' into dev
alex-sandrk May 16, 2024
08db100
feat: add endpoints for balances
alex-sandrk May 17, 2024
44d354b
Merge pull request #66 from Lumerin-protocol/feature/blockchain-backend
alex-sandrk May 17, 2024
62bd8bb
feat: transaction endpoint
alex-sandrk May 17, 2024
1cd0042
fix: remove log
alex-sandrk May 17, 2024
b425c28
Merge pull request #67 from Lumerin-protocol/feature/blockchain-backend
alex-sandrk May 17, 2024
5180436
Merge pull request #64 from Lumerin-protocol/proxy/unpack-evm-custom-…
lsheva May 17, 2024
ddf7687
feat: add endpoint to get provider claimable balance from session
alex-sandrk May 17, 2024
38ab5f0
Merge branch 'main' of github.com:Lumerin-protocol/Morpheus-Lumerin-N…
alex-sandrk May 17, 2024
69d867f
Merge pull request #68 from Lumerin-protocol/feat/endpoint-provider-s…
alex-sandrk May 17, 2024
5093fa0
feat: send eth and mor endpoints
alex-sandrk May 17, 2024
772ff37
fix: bot review comment
alex-sandrk May 17, 2024
3d22341
fix: bot review comment
alex-sandrk May 17, 2024
207659f
Merge pull request #69 from Lumerin-protocol/feature/send-endpoints
alex-sandrk May 17, 2024
a30a0ce
fix: send correct HTTP status
alex-sandrk May 17, 2024
207562c
Removed useless files
bohdan-titan May 19, 2024
ad666b2
feat: add endpoints to get params for stake calculation
alex-sandrk May 22, 2024
136c1de
Merge pull request #70 from Lumerin-protocol/feat/stake-endpoints
alex-sandrk May 22, 2024
00a724c
feat: open session with provider approval
shev-titan May 22, 2024
61918fc
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 23, 2024
054f10b
WIP: Removed old code, added UI
bohdan-titan May 23, 2024
17b03bd
Changed onboarding
bohdan-titan May 23, 2024
3290d97
Filled open session form
bohdan-titan May 23, 2024
cf38d90
feat: open close session signature and ttl verification
shev-titan May 24, 2024
afb2e25
test log
bohdan-titan May 26, 2024
70ec300
feat: remove bid-session index, add userSessions and providerSessions…
shev-titan May 27, 2024
1db701c
Merge pull request #71 from Lumerin-protocol/smart-contracts/session-…
lsheva May 27, 2024
102a0ae
feat: provider claim
alex-sandrk May 27, 2024
3131bc6
Merge pull request #74 from Lumerin-protocol/feat/provider-clain
alex-sandrk May 27, 2024
8e94cb8
Added basic providers page
bohdan-titan May 27, 2024
901617a
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 27, 2024
b1bb4c3
fix: getComputeBalance collision when gen bindings
shev-titan May 28, 2024
f46e417
feat: add endpoint to get session, new open/close session flow
alex-sandrk May 28, 2024
9b55224
Merge pull request #75 from Lumerin-protocol/smart-contracts/session-…
alex-sandrk May 28, 2024
c7dd88c
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
alex-sandrk May 28, 2024
d4f0569
merge dev
alex-sandrk May 28, 2024
07d1411
fix: get todays budget
alex-sandrk May 28, 2024
5e1261b
Changed Chat page added provider
bohdan-titan May 28, 2024
2f5de31
Merge pull request #76 from Lumerin-protocol/feat/get-sessions-and-ne…
bohdan-titan May 29, 2024
05e9d24
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 29, 2024
15d62ab
fix: new getTodaysBudget signature
shev-titan May 29, 2024
b1ab7ef
Merge pull request #77 from Lumerin-protocol/fix/getTodaysBudget
lsheva May 29, 2024
23d9663
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 29, 2024
4b6507a
feat: consistent data type and field name for timestamps
shev-titan May 13, 2024
7eb134b
fixed local chat
bohdan-titan May 29, 2024
a1ec507
chore: rename agent record timestamp
shev-titan May 29, 2024
5f3afc6
fix: add session indexes
shev-titan May 29, 2024
da08bfe
feat: timestamp -> createdAt
alex-sandrk May 29, 2024
888ab41
Merge pull request #62 from Lumerin-protocol/smart-contracts/consiste…
lsheva May 29, 2024
9fc22e9
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
alex-sandrk May 29, 2024
713e519
feat: approve endpoint
alex-sandrk May 29, 2024
64fa947
fix: claim
alex-sandrk May 29, 2024
1926d2b
Merge pull request #78 from Lumerin-protocol/feat/update-naming
bohdan-titan May 29, 2024
293fde4
Merge branch 'dev' of github.com:Lumerin-protocol/Morpheus-Lumerin-No…
bohdan-titan May 29, 2024
5f09fcd
Added providers
bohdan-titan May 29, 2024
9332e85
Fixed balance
bohdan-titan May 29, 2024
8034f6a
Removed hard code
bohdan-titan May 29, 2024
0ba0359
Merge pull request #79 from Lumerin-protocol/feature/wallet-api-integ…
alex-sandrk May 29, 2024
b817166
update .env.example
alex-sandrk May 29, 2024
d6c9050
Merge pull request #80 from Lumerin-protocol/feat/env-example
alex-sandrk May 29, 2024
4af8980
fixed tx
bohdan-titan May 29, 2024
cf6eca7
Fixed issue with sessions
bohdan-titan May 29, 2024
2775f2c
Merge pull request #81 from Lumerin-protocol/feature/tx
bohdan-titan May 29, 2024
f2b3fa8
Merge pull request #65 from Lumerin-protocol/dev
LumerinIO May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 135 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ on:
push:
branches:
- main
paths: ['.github/workflows/**', '**/Makefile', '**/*.go']
paths: ['.github/workflows/**', '**/Makefile', '**/*.go', '**/*.json', '**/*.yml', '**/*.ts', '**/*.js']
pull_request:
types: [opened, reopened, synchronize]
paths: ['.github/workflows/**', '**/Makefile', '**/*.go', '**/*.json', '**/*.yml', '**/*.ts', '**/*.js']

concurrency:
group: ci-${{ github.ref }}
Expand All @@ -32,14 +35,25 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
cache-dependency-path: launcher/go.sum
cache-dependency-path: |
launcher/go.sum
proxy-router/go.sum

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ui-desktop/yarn.lock

- name: Install dependencies
run: |
cd launcher
go mod tidy
cd ../proxy-router
go mod download
cd ../ui-desktop
yarn install --network-timeout 600000

- name: Build
id: build
Expand All @@ -48,6 +62,8 @@ jobs:
make
cd ../proxy-router
make build
cd ../ui-desktop
yarn build:linux

- name: Determine tag name
id: tag
Expand All @@ -61,12 +77,12 @@ jobs:
ARTIFACT=mor-launch-${{ steps.tag.outputs.name }}-ubuntu-x64.zip
LLAMACPP=llama-b2699-bin-ubuntu-x64.zip
MODEL=tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
wget https://github.com/ggerganov/llama.cpp/releases/download/b2699/$LLAMACPP
wget https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/$MODEL
wget -nv https://github.com/ggerganov/llama.cpp/releases/download/b2699/$LLAMACPP
wget -nv https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/$MODEL
unzip -o -j $LLAMACPP build/bin/server
echo '{"run":["./server -m ./'$MODEL'","./proxy-router"]}' > mor-launch.json
echo '{"run":["./server -m ./'$MODEL'","./proxy-router","./ui-desktop-1.0.0.AppImage"]}' > mor-launch.json
cp ./proxy-router/.env.example .env
zip -j $ARTIFACT ./LICENSE ./launcher/mor-launch server ./proxy-router/bin/proxy-router .env $MODEL mor-launch.json
zip -j $ARTIFACT ./LICENSE ./launcher/mor-launch server ./proxy-router/bin/proxy-router .env $MODEL mor-launch.json ./ui-desktop/dist/ui-desktop-1.0.0.AppImage

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand All @@ -85,14 +101,25 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
cache-dependency-path: launcher/go.sum
cache-dependency-path: |
launcher/go.sum
proxy-router/go.sum

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ui-desktop/yarn.lock

- name: Install dependencies
run: |
cd launcher
go mod tidy
cd ../proxy-router
go mod download
cd ../ui-desktop
yarn install --network-timeout 600000

- name: Build
id: build
Expand All @@ -101,6 +128,8 @@ jobs:
make
cd ../proxy-router
make build
cd ../ui-desktop
yarn build:mac

- name: Determine tag name
id: tag
Expand All @@ -114,12 +143,14 @@ jobs:
ARTIFACT=mor-launch-${{ steps.tag.outputs.name }}-macos-x64.zip
LLAMACPP=llama-b2699-bin-macos-x64.zip
MODEL=tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
wget https://github.com/ggerganov/llama.cpp/releases/download/b2699/$LLAMACPP
wget https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/$MODEL
wget -nv https://github.com/ggerganov/llama.cpp/releases/download/b2699/$LLAMACPP
wget -nv https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/$MODEL
unzip -o -j $LLAMACPP build/bin/server
echo '{"run":["./server -m ./'$MODEL'","./proxy-router"]}' > mor-launch.json
echo '{"run":["./server -m ./'$MODEL'","./proxy-router","./ui-desktop.app/Contents/MacOS/ui-desktop"]}' > mor-launch.json
cp ./proxy-router/.env.example .env
unzip ./ui-desktop/dist/ui-desktop-1.0.0-mac.zip
zip -j $ARTIFACT ./LICENSE ./launcher/mor-launch ./proxy-router/bin/proxy-router .env server $MODEL mor-launch.json
zip -r $ARTIFACT ui-desktop.app

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand All @@ -138,14 +169,25 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
cache-dependency-path: launcher/go.sum
cache-dependency-path: |
launcher/go.sum
proxy-router/go.sum

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ui-desktop/yarn.lock

- name: Install dependencies
run: |
cd launcher
go mod tidy
cd ../proxy-router
go mod download
cd ../ui-desktop
yarn install --network-timeout 600000

- name: Build
id: build
Expand All @@ -154,6 +196,8 @@ jobs:
make
cd ../proxy-router
make build
cd ../ui-desktop
yarn build:mac

- name: Determine tag name
id: tag
Expand All @@ -167,26 +211,102 @@ jobs:
ARTIFACT=mor-launch-${{ steps.tag.outputs.name }}-macos-arm64.zip
LLAMACPP=llama-b2699-bin-macos-arm64.zip
MODEL=tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
wget https://github.com/ggerganov/llama.cpp/releases/download/b2699/$LLAMACPP
wget https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/$MODEL
wget -nv https://github.com/ggerganov/llama.cpp/releases/download/b2699/$LLAMACPP
wget -nv https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/$MODEL
unzip -o -j $LLAMACPP build/bin/server
echo '{"run":["./server -m ./'$MODEL'","./proxy-router"]}' > mor-launch.json
echo '{"run":["./server -m ./'$MODEL'","./proxy-router","./ui-desktop.app/Contents/MacOS/ui-desktop"]}' > mor-launch.json
cp ./proxy-router/.env.example .env
unzip ./ui-desktop/dist/ui-desktop-1.0.0-arm64-mac.zip
zip -j $ARTIFACT ./LICENSE ./launcher/mor-launch ./proxy-router/bin/proxy-router .env server $MODEL mor-launch.json
zip -r $ARTIFACT ui-desktop.app

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: mor-launch-${{ steps.tag.outputs.name }}-macos-arm64.zip
name: mor-launch-macos-arm64.zip

Windows-avx2-x64:
runs-on: windows-latest
steps:
- name: Clone
uses: actions/checkout@v4
id: checkout

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
cache-dependency-path: |
launcher/go.sum
proxy-router/go.sum

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ui-desktop/yarn.lock

- name: Install wget
run: |
choco install wget --no-progress

- name: Install dependencies
run: |
cd launcher
go mod tidy
cd ../proxy-router
go mod download
cd ../ui-desktop
yarn install --network-timeout 600000

- name: Build
id: build
run: |
cd launcher
make
cd ../proxy-router
make build
cd ../ui-desktop
yarn build:win

- name: Determine tag name
id: tag
run: |
SHORT_HASH="$(git rev-parse --short=7 HEAD)"
echo "name=${SHORT_HASH}" >> $GITHUB_OUTPUT

- name: Pack artifacts
id: pack_artifacts
run: |
ARTIFACT=mor-launch-${{ steps.tag.outputs.name }}-win-x64.zip
LLAMACPP=llama-b2699-bin-win-avx2-x64.zip
MODEL=tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
wget -nv https://github.com/ggerganov/llama.cpp/releases/download/b2699/$LLAMACPP
wget -nv https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/$MODEL
unzip -o -j $LLAMACPP server.exe llama.dll
echo '{"run":["./server.exe -m ./'$MODEL'","./proxy-router.exe","./ui-desktop-1.0.0.exe"]}' > mor-launch.json
cp ./proxy-router/.env.example .env
mv ./proxy-router/bin/proxy-router proxy-router.exe
mv ./launcher/mor-launch mor-launch.exe
mv "./ui-desktop/dist/ui-desktop 1.0.0.exe" ui-desktop-1.0.0.exe
7z a $ARTIFACT LICENSE mor-launch.exe proxy-router.exe .env server.exe llama.dll $MODEL mor-launch.json ui-desktop-1.0.0.exe

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: mor-launch-${{ steps.tag.outputs.name }}-win-x64.zip
name: mor-launch-win-x64.zip

release:
if: ${{ github.event.inputs.create_release == 'true' }}
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
runs-on: ubuntu-latest
needs:
- Ubuntu-22-x64
- macOS-12-x64
- macOS-14-arm64
- Windows-avx2-x64
steps:
- name: Clone
id: checkout
Expand Down
23 changes: 17 additions & 6 deletions launcher/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io"
"os"
"os/exec"
"path/filepath"
"sync"
"github.com/google/shlex"
)
Expand All @@ -15,20 +16,29 @@ type Config struct {
Run []string `json:"run"`
}

func findConfig(fileName string) (string, error) {
homeFile := path.Join(os.Getenv("HOME"), fileName)
func findConfig(fileName string, base string) (string, error) {
if _, err := os.Stat(fileName); err == nil {
return fileName, nil
} else if _, err := os.Stat(homeFile); err == nil {
}
homeFile := path.Join(os.Getenv("HOME"), fileName)
if _, err := os.Stat(homeFile); err == nil {
return homeFile, nil
} else {
return "", os.ErrNotExist
}
siblingFile := path.Join(base, fileName)
if _, err := os.Stat(siblingFile); err == nil {
return siblingFile, nil
}
return "", os.ErrNotExist
}

func main() {
exepath, err := os.Executable()
if err != nil {
log.Panic(err)
}
base := filepath.Dir(exepath)
confName := "mor-launch.json"
confFile, err := findConfig(confName)
confFile, err := findConfig(confName, base)
if err != nil {
log.Fatalf("Error finding %s: %v", confName, err)
}
Expand Down Expand Up @@ -58,6 +68,7 @@ func main() {
return
}
cmd := exec.Command(args[0], args[1:]...)
cmd.Dir = base
stdout, err := cmd.StdoutPipe()
if err != nil {
log.Print(err)
Expand Down
26 changes: 11 additions & 15 deletions proxy-router/.env.example
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
ETH_NODE_ADDRESS=https://rpc.ankr.com/eth
ETH_NODE_LEGACY_TX=false
DIAMOND_CONTRACT_ADDRESS=0x70768f0fF919e194E11aBFC3a2eDF43213359dc1
ENVIRONMENT=development

WALLET_PRIVATE_KEY=

ETH_NODE_ADDRESS=https://arbitrum-sepolia.blockpi.network/v1/rpc/public
ETH_NODE_LEGACY_TX=false
EXPLORER_API_URL="https://api-sepolia.arbiscan.io/api"
LOG_COLOR=true
LOG_FOLDER_PATH=
LOG_LEVEL_APP=info
LOG_LEVEL_SCHEDULER=info
LOG_LEVEL_PROXY=info
LOG_LEVEL_CONNECTION=info
LOG_FOLDER_PATH=./logs/

LOG_LEVEL_PROXY=info
LOG_LEVEL_SCHEDULER=info
MOR_TOKEN_ADDRESS=0xc1664f994fd3991f98ae944bc16b9aed673ef5fd
OPENAI_BASE_URL=http://localhost:11434/v1
PROXY_ADDRESS=0.0.0.0:3333

SYS_ENABLE=false
SYS_LOCAL_PORT_RANGE=1024 65535
SYS_NET_DEV_MAX_BACKLOG=100000
SYS_RLIMIT_HARD=524288
SYS_RLIMIT_SOFT=524288
SYS_SOMAXCONN=100000
SYS_TCP_MAX_SYN_BACKLOG=100000

WEB_PUBLIC_URL=
PROVIDER_REGISTRY_ADDRESS=
MODEL_REGISTRY_ADDRESS=
MARKETPLACE_ADDRESS=
WALLET_PRIVATE_KEY=
WEB_ADDRESS=0.0.0.0:8080
WEB_PUBLIC_URL=
2 changes: 2 additions & 0 deletions proxy-router/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

VERSION=$(grep '^VERSION=' .version | cut -d '=' -f 2-)
echo VERSION=$VERSION

Expand Down
Loading