Назад к моделям
GPT OSS Safeguard 120B
openaiopenai/gpt-oss-safeguard-120b
Гид по API
Chat completion
Используйте стандартный совместимый с OpenAI chat completion через TheRouter. Модель принимает политику в системном сообщении или сообщении разработчика и классифицирует вводной контент в соответствии с ней.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-oss-safeguard-120b",
"messages": [
{"role": "system", "content": "You are a safety classifier. Apply the policy faithfully."},
{"role": "developer", "content": "Policy: Classify messages as SAFE or UNSAFE. UNSAFE includes hate speech, harassment, and spam. SAFE includes all other content."},
{"role": "user", "content": "I love this product! It works great."}
]
}'Анализ политики
Модель использует цепочку рассуждений для объяснения своих решений классификации в рамках предоставленной политики. Просмотрите трассировку рассуждений для проверяемости.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-oss-safeguard-120b",
"messages": [
{"role": "developer", "content": "Policy: Classify user reviews as GENUINE or SUSPICIOUS. SUSPICIOUS means the review contains fake or incentivized language. Output REASONING: then CLASSIFICATION."},
{"role": "user", "content": "This is the best phone ever!!! I got it for free and everyone should buy one!!!"}
]
}'Вызов функций
Полная поддержка совместимого с OpenAI вызова инструментов и функций, унаследованная от базовой модели gpt-oss-120b. Полезна для интеграции Safeguard в автоматизированные пайплайны модерации.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-oss-safeguard-120b",
"messages": [{"role": "user", "content": "Classify this review under our policy."}],
"tools": [{
"type": "function",
"function": {
"name": "log_moderation_result",
"description": "Log the classification result",
"parameters": {
"type": "object",
"properties": {
"classification": {"type": "string"},
"confidence": {"type": "number"}
},
"required": ["classification"]
}
}
}],
"tool_choice": "auto"
}'Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Дата релиза | openai.com ↗ | 2026-05-29 | проверено |
| Базовая модель | arxiv.org ↗ | 2026-05-29 | проверено |
| Лицензия | openai.com ↗ | 2026-05-29 | проверено |
| Архитектура | arxiv.org ↗ | 2026-05-29 | проверено |
| Контекстное окно | openai.com ↗ | 2026-05-29 | проверено |
| Токенизатор | arxiv.org ↗ | 2026-05-29 | проверено |
| Квантизация | arxiv.org ↗ | 2026-05-29 | проверено |
| Назначение модели | openai.com ↗ | 2026-05-29 | проверено |
| Ограничение | openai.com ↗ | 2026-05-29 | проверено |
| Multi-policy accuracy (internal) | openai.com ↗ | 2026-05-29 | проверено |
| 2022 Moderation eval (internal policy) | openai.com ↗ | 2026-05-29 | к проверке |
| ToxicChat | openai.com ↗ | 2026-05-29 | к проверке |
| OpenAI выпускает gpt-oss-safeguard — модели безопасности с открытыми весами | openai.com ↗ | 2026-05-29 | проверено |
| Чем gpt-oss-safeguard-120b отличается от Moderation API от OpenAI? | openai.com ↗ | 2026-05-29 | к проверке |
| Может ли TheRouter хостить gpt-oss-safeguard-120b, чтобы мне не нужно было самостоятельно разворачивать модель? | openai.com ↗ | 2026-05-29 | к проверке |