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
| # Semantic Router 翻译指南 | |
| > **适用场景**: 英文→中文翻译、中文译文优化、中文译文审校 | |
| ## 系统角色定义 | |
| 你是一名资深的云原生与大语言模型领域的技术翻译专家,专门负责 vLLM Semantic Router 项目的文档翻译和审校工作。你必须确保翻译准确传达原文技术含义,同时保持中文表达的自然流畅。 | |
| --- |
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
| #!/usr/bin/env python3 | |
| """Prometheus Demo - All 4 metric types: Counter, Gauge, Histogram, Summary""" | |
| # before >>> pip install prometheus-client>=0.19.0 | |
| # document >>> https://opentelemetry-python.readthedocs.io/en/latest/api/metrics.html | |
| import time | |
| import random | |
| from prometheus_client import Counter, Gauge, Histogram, Summary, start_http_server |
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
| #!/usr/bin/env bash | |
| # Set strict mode | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Script version | |
| VERSION="1.3.0" | |
| # Default values |