Skip to content

Commit e1a1311

Browse files
authored
Merge branch 'main' into test_keyword_routing
2 parents f72834e + fa74d0e commit e1a1311

File tree

276 files changed

+34500
-10038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+34500
-10038
lines changed

.crd-ref-docs.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
processor:
2+
# Ignore fields that are common to all Kubernetes resources
3+
ignoreFields:
4+
- "TypeMeta"
5+
- "ObjectMeta"
6+
- "ListMeta"
7+
8+
# Ignore types that are not relevant for documentation
9+
ignoreTypes:
10+
- "metav1.Time"
11+
- "metav1.Duration"
12+
- "metav1.ObjectMeta"
13+
- "metav1.TypeMeta"
14+
- "metav1.ListMeta"
15+
16+
# Source path for Go API types
17+
sourcePath: "./src/semantic-router/pkg/apis/vllm.ai/v1alpha1"
18+
19+
render:
20+
# Enable Kubebuilder markers rendering
21+
kubebuilderMarkers: true
22+
23+
# Group resources by Kind
24+
groupByKind: true
25+
26+
# Include table of contents
27+
includeTableOfContents: true
28+
29+
# Custom templates (optional)
30+
# templatesDir: "./docs/crd-templates"
31+
32+
# Output format: markdown, asciidoc, or html
33+
format: markdown
34+
35+
# Custom configuration for your CRDs
36+
groups:
37+
- name: vllm.ai
38+
displayName: "vLLM Semantic Router"
39+
description: |
40+
Custom Resource Definitions for vLLM Semantic Router.
41+
These CRDs enable declarative configuration of intelligent routing and model pools.
42+
43+
kinds:
44+
- name: IntelligentRoute
45+
displayName: "Intelligent Route"
46+
description: |
47+
IntelligentRoute defines intelligent routing rules and decisions for LLM requests.
48+
It supports decision-based routing with rule combinations, model references, and plugins.
49+
50+
- name: IntelligentPool
51+
displayName: "Intelligent Pool"
52+
description: |
53+
IntelligentPool defines a pool of LLM models with their configurations.
54+
It manages model endpoints, reasoning families, and model-specific settings.
55+
56+
# Markdown rendering options
57+
markdown:
58+
# Header level for the main title
59+
headerLevel: 1
60+
61+
# Include examples in the documentation
62+
includeExamples: true
63+
64+
# Include status subresource documentation
65+
includeStatus: true
66+
67+
# Code block language for YAML examples
68+
codeBlockLanguage: yaml
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Content Moderation
2+
3+
on:
4+
issues:
5+
types: [opened, edited]
6+
pull_request:
7+
types: [opened, edited]
8+
issue_comment:
9+
types: [created, edited]
10+
pull_request_review_comment:
11+
types: [created, edited]
12+
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
contents: write
17+
18+
jobs:
19+
moderate:
20+
if: ${{ github.event.action == 'created' || github.event.action == 'edited' || github.event.action == 'opened' }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Run spam filter
24+
uses: actions/github-script@v7
25+
env:
26+
# The entire spam detection logic is stored here
27+
SPAM_DETECTION_SCRIPT: ${{ secrets.SPAM_DETECTION_SCRIPT }}
28+
with:
29+
script: |
30+
// Load and execute the spam detection script from secret
31+
const detectionScript = process.env.SPAM_DETECTION_SCRIPT;
32+
33+
if (!detectionScript) {
34+
core.warning("SPAM_DETECTION_SCRIPT secret not configured - skipping spam detection");
35+
core.info("To enable spam filtering, set up the SPAM_DETECTION_SCRIPT secret.");
36+
core.info("See documentation for setup instructions.");
37+
return;
38+
}
39+
40+
try {
41+
// Execute the hidden script
42+
// The script has access to: github, context, core
43+
const detectSpam = eval(detectionScript);
44+
45+
// Run the detection
46+
await detectSpam(github, context, core);
47+
48+
} catch (err) {
49+
core.error(`Spam filter error: ${err.message}`);
50+
core.warning(`Filter execution failed - continuing without spam check`);
51+
// Don't fail the workflow, just log the error
52+
}
53+

0 commit comments

Comments
 (0)