chore: migrate rust/llm_chatbot to icp-cli#1439
Draft
marc0olo wants to merge 1 commit into
Draft
Conversation
- Replaces dfx.json with icp.yaml; llm canister uses pre-built WASM (v0.3.1, Ollama mode); ic environment excludes llm so icp deploy does not redeploy it on mainnet - icp deploy auto-injects PUBLIC_CANISTER_ID:llm into the backend canister when deploying locally; ic-llm 1.2.0 reads that env var at runtime to reach the local LLM, falling back to the hardcoded mainnet principal (w36hm-eqaaa-aaaal-qr76a-cai) when the var is absent - Bumps ic-cdk to 0.20, ic-llm to 1.2.0, edition to 2024 - Adds backend.did (interface from ic-llm ChatMessage types) - Migrates frontend from dfx declarations + vite-plugin-environment to @icp-sdk/bindgen + actor.js using safeGetCanisterEnv - Adds test.sh and CI workflow (rust-llm_chatbot job) - Removes dfx.json, BUILD.md, .devcontainer/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
|
Blocked on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dfx.jsonwithicp.yaml; thellmcanister uses a pre-built WASM (v0.3.1, Ollama mode)icenvironment excludesllm—icp deploydoes not redeploy it on mainneticp deployauto-injectsPUBLIC_CANISTER_ID:llminto the backend canister when deploying locally;ic-llm 1.2.0reads that env var at runtime to reach the local LLM, and falls back to the hardcoded mainnet principal (w36hm-eqaaa-aaaal-qr76a-cai) when the var is absentic-cdkto 0.20,ic-llmto 1.2.0, edition to 2024backend.did(Candid interface fromic-llmChatMessagetypes)vite-plugin-environmentto@icp-sdk/bindgen+actor.jsusingsafeGetCanisterEnvtest.shand CI workflow (rust-llm_chatbotjob)dfx.json,BUILD.md,.devcontainer/🤖 Generated with Claude Code