### Clone and Install AIGNE Hub Project Source: https://github.com/aigne-io/aigne-hub/blob/main/CONTRIBUTING.md Commands to clone the AIGNE Hub repository, navigate into the directory, install dependencies using pnpm, and start the development server. ```bash git clone https://github.com/blocklet/ai-kit.git cd ai-kit pnpm install pnpm dev ``` -------------------------------- ### AIGNE Hub Available Scripts Source: https://github.com/aigne-io/aigne-hub/blob/main/CONTRIBUTING.md List of available npm scripts for managing the AIGNE Hub project, including development, building, linting, cleaning, and bundling. ```bash # Start development server pnpm dev # Build for production pnpm build # Run linter pnpm lint # Clean build artifacts pnpm clean # Create production bundle pnpm bundle ``` -------------------------------- ### AIGNE Hub Integration with AIGNE Framework (TypeScript) Source: https://github.com/aigne-io/aigne-hub/blob/main/README.md Demonstrates how to integrate AIGNE Hub into an application using the AIGNE Framework in TypeScript. It shows initializing the AIGNEHubChatModel with the Hub's URL and an access key, and then invoking a chat completion. Ensure the AIGNE Hub URL and access key are correctly configured. ```typescript import { AIGNEHubChatModel } from "@aigne/aigne-hub"; const model = new AIGNEHubChatModel({ url: "https://your-aigne-hub-url/api/v2/chat", accessKey: "your-oauth-access-key", model: "openai/gpt-3.5-turbo", }); const result = await model.invoke({ messages: "Hello, AIGNE Hub!", }); console.log(result); ``` -------------------------------- ### Backend Debugging Commands for AIGNE Hub Source: https://github.com/aigne-io/aigne-hub/blob/main/CONTRIBUTING.md Commands to enable verbose logging or debug specific components of the AIGNE Hub backend during development. ```bash # Enable verbose logging VERBOSE=true pnpm dev # Debug specific components DEBUG=aigne:* pnpm dev ``` -------------------------------- ### Check and Fix Code Style with ESLint/Prettier Source: https://github.com/aigne-io/aigne-hub/blob/main/CONTRIBUTING.md Commands to check code style using ESLint and Prettier, and to automatically fix any identified code style issues in the AIGNE Hub project. ```bash # Check code style pnpm lint # Auto-fix code style issues pnpm lint:fix ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.