Ae1
High
- Category
- analysis-evasion
- Content
Template: templates/api-route-anthropic.ts.template
- Confidence
- 100% confidence
- Finding
- Referenced artifact was not completely inspected
Security audit
Security checks for vulnerabilities and agentic risk
This skill coherently helps build OpenUI generative UI projects, with expected package installation, project scanning, and LLM-provider data flow disclosed in its instructions and templates.
Install this only if you intend to add OpenUI code to a project. Review package versions before running npx or npm install, keep provider API keys in environment or secret management, and tell end users when chat content is sent to an external model provider.
Template: templates/api-route-anthropic.ts.template
Template: templates/api-route-langchain.ts.template
Run `scripts/validate.sh` (or `.ps1`) for automated checks.
get("messages", [])
api_messages = [{"role": "system", "content": system_prompt}]
for msg in messages:
api_messages.append({
"role": msg.get("role", "user"),
"content": msg.get("content", ""),
})
async def generate():
completion_id = f"chatcmpl-{uuid.uuid4().hex[:12]}"
stream = await client.chat.completions.create(
model=os.getenv("OPENAI_MODEL", "gpt-5.5"),
messages=api_messages,
stream=True,
)
async for chunk in stream:
delta = chunk.choices[0].delta if chunk.choices else None
finish_reason = chunk.choices[0].finish_reason if chunk.choices else None
if delta and delta.content:
line = json.dumps({
"id": completion_id,
"object": "chat.completion.chunk",
"choices": [{
"index": 0,
"delta": {"content": delta.# ------------------------------------------------------------------------- # gem "rails", "~> 8.1" # # Net::HTTP is in the standard library — no extra HTTP-client gem required. # # Optional: load OPENAI_API_KEY etc. from a .env file in development. # gem "dotenv-rails", groups: [:development, :test] # # Then: bundle install
# ------------------------------------------------------------------------- # gem "rails", "~> 8.1" # # Net::HTTP is in the standard library — no extra HTTP-client gem required. # # Optional: load OPENAI_API_KEY etc. from a .env file in development. # gem "dotenv-rails", groups: [:development, :test] # # Then: bundle install
# ------------------------------------------------------------------------- # gem "rails", "~> 8.1" # # Net::HTTP is in the standard library — no extra HTTP-client gem required. # # Optional: load OPENAI_API_KEY etc. from a .env file in development. # gem "dotenv-rails", groups: [:development, :test] # # Then: bundle install
|----------|-------------------|------------------| | Gemini (Google) | `https://generativelanguage.googleapis.com/v1beta/openai/` | `gemini-2.5-flash` | | OpenRouter | `https://openrouter.ai/api/v1` | `openai/gpt-4o` | | xAI (Grok) | `https://api.x.ai/v1` | `grok-4` | | DeepSeek | `https://api.deepseek.com` | `deepseek-chat` | | Groq | `https://api.groq.com/openai/v1` | `llama-3.3-70b-versatile` | | Mistral | `https://api.mistral.ai/v1` | `mistral-large-latest` |
| OpenRouter | `https://openrouter.ai/api/v1` | `openai/gpt-4o` | | xAI (Grok) | `https://api.x.ai/v1` | `grok-4` | | DeepSeek | `https://api.deepseek.com` | `deepseek-chat` | | Groq | `https://api.groq.com/openai/v1` | `llama-3.3-70b-versatile` | | Mistral | `https://api.mistral.ai/v1` | `mistral-large-latest` | | Together | `https://api.together.ai/v1` | `meta-llama/Llama-3.3-70B-Instruct-Turbo` | | Fireworks | `https://api.fireworks.ai/inference/v1` | `accounts/fireworks/models/llama-v3p3-70b-instruct` |
| xAI (Grok) | `https://api.x.ai/v1` | `grok-4` | | DeepSeek | `https://api.deepseek.com` | `deepseek-chat` | | Groq | `https://api.groq.com/openai/v1` | `llama-3.3-70b-versatile` | | Mistral | `https://api.mistral.ai/v1` | `mistral-large-latest` | | Together | `https://api.together.ai/v1` | `meta-llama/Llama-3.3-70B-Instruct-Turbo` | | Fireworks | `https://api.fireworks.ai/inference/v1` | `accounts/fireworks/models/llama-v3p3-70b-instruct` | | Ollama (local) | `http://localhost:11434/v1/` | `llama3.2` (any placeholder api key) |
| DeepSeek | `https://api.deepseek.com` | `deepseek-chat` | | Groq | `https://api.groq.com/openai/v1` | `llama-3.3-70b-versatile` | | Mistral | `https://api.mistral.ai/v1` | `mistral-large-latest` | | Together | `https://api.together.ai/v1` | `meta-llama/Llama-3.3-70B-Instruct-Turbo` | | Fireworks | `https://api.fireworks.ai/inference/v1` | `accounts/fireworks/models/llama-v3p3-70b-instruct` | | Ollama (local) | `http://localhost:11434/v1/` | `llama3.2` (any placeholder api key) | | LM Studio (local) | `http://localhost:1234/v1` | `mistral-7b-instruct-v0.3` (any placeholder api key) |
| Groq | `https://api.groq.com/openai/v1` | `llama-3.3-70b-versatile` | | Mistral | `https://api.mistral.ai/v1` | `mistral-large-latest` | | Together | `https://api.together.ai/v1` | `meta-llama/Llama-3.3-70B-Instruct-Turbo` | | Fireworks | `https://api.fireworks.ai/inference/v1` | `accounts/fireworks/models/llama-v3p3-70b-instruct` | | Ollama (local) | `http://localhost:11434/v1/` | `llama3.2` (any placeholder api key) | | LM Studio (local) | `http://localhost:1234/v1` | `mistral-7b-instruct-v0.3` (any placeholder api key) |
Detected: suspicious.exposed_secret_literal, suspicious.prompt_injection_instructions