Bienvenue à l'Atelier d'IA Génial ! 🎉
Avant de commencer, assurez-vous d'avoir installé les éléments suivants :
- Python 3.7+
- NumPy
| diff --git a/bot/core.py b/bot/core.py | |
| index d842ac3..468a4d3 100644 | |
| --- a/bot/core.py | |
| +++ b/bot/core.py | |
| @@ -30,88 +30,14 @@ from openai import AsyncOpenAI, APIError | |
| # --------------------------------------------------------------------------- | |
| # LLM provider presets (Multi-Provider support) | |
| # --------------------------------------------------------------------------- | |
| -# Each provider maps to (base_url, default_model, api_key_env_var). | |
| -# Users set LLM_PROVIDER=<key> for one-step configuration; |
| diff --git a/.env.example b/.env.example | |
| index 44bd34e..7441dc9 100644 | |
| --- a/.env.example | |
| +++ b/.env.example | |
| @@ -57,6 +57,15 @@ LLM_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
| # OMICSCLAW_MODEL=qwen2.5:7b | |
| # LLM_BASE_URL=http://localhost:11434/v1 | |
| +# --- Option 4: AWS Bedrock (uses AWS credential chain, no API key needed) --- | |
| +# Requires: pip install -e ".[aws]" |
| version: "3.8" | |
| # --- Shared Configuration Template --- | |
| x-common-env: &default-config | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=America/New_York # <-- Change to your Timezone | |
| restart: unless-stopped | |
| deploy: |
| pre_prompt = """ | |
| You are translating the documentation for a workshop. | |
| Translate the Markdown content from {source_language} to {target_language}. | |
| You must strictly follow the rules below. | |
| - Never change the Markdown markup structure. Please don't add or remove links. Do not change any URL. | |
| - Translate the headers, but make sure to stick to the structure. | |
| - Never change the contents of code blocks, even if they appear to have a bug. | |
| - Always preserve the original line breaks. Please don't add or remove blank lines. | |
| - Never touch the permalink such as "*examples*" at the end of each heading. | |
| - Never touch HTML-like tags such as "Notes." |
| // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| // SPDX-License-Identifier: MIT-0 | |
| // default imports | |
| const AWSXRay = require('aws-xray-sdk-core') | |
| const AWS = AWSXRay.captureAWS(require('aws-sdk')) | |
| const { metricScope, Unit } = require("aws-embedded-metrics") | |
| const DDB = new AWS.DynamoDB({ apiVersion: "2012-10-08" }) | |
| // environment variables |
| #!/bin/bash | |
| # Specify the desired volume size in GiB as a command line argument. If not specified, default to 50 GiB. | |
| SIZE=${1:-50} | |
| # Get the ID of the environment host Amazon EC2 instance. | |
| INSTANCEID=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
| # Get the ID of the Amazon EBS volume associated with the instance. | |
| VOLUMEID=$(aws ec2 describe-instances \ |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "dynamodb:GetItem", | |
| "dynamodb:PutItem", | |
| "dynamodb:Query" | |
| ], |
| #!/bin/bash | |
| ####################################################################################### | |
| # | |
| # On WP2Static, targetdir = /opt/bitnami/wordpress/wp-content/static-version/deploy | |
| # the script is executed outside the deploy dir in case you need to do any transfomations | |
| # before the actual sync. | |
| # | |
| # Earlier version contained for example, hash of the deploy dir and its files for | |
| # comparison, but since we're using s3 sync, no need to keep that. |
| !#bin/bash | |
| sox -n -r 44100 -c 2 silence.wav trim 0.0 2 | |
| lame -b 32 --resample 8 -a silence.wav silence.mp3 |