Back to skills
SKILL.md
Llm Integration Skill
ASecurity```python from langchain_openai import ChatOpenAI from langchain_anthropic import ChatAnthropic
- 666 stars
- 0 votes
- 0 copies
- 3 views
- Added September 2, 2026
Security analysis
100/100npx -y skills add majiayu000/claude-skill-registry --skill llm-integration-skill --agent claude-codeAre you the author of Llm Integration Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-llm-integration-skill)---
name: llm-integration
version: 1.0
triggers: ["LLM", "provider", "fallback", "streaming"]
---
# LLM Integration SKILL
## Provider Abstraction
```python
from langchain_openai import ChatOpenAI
from langchain_anthropic import ChatAnthropic
llm = ChatOpenAI(model="gpt-4")
# or
llm = ChatAnthropic(model="claude-3-sonnet-20240229")
```
## Fallback Chain
```python
from langchain.chat_models import init_chat_model
llm = init_chat_model(
"gpt-4",
fallbacks=["claude-3-sonnet-20240229", "ollama/llama2"]
)
```
## Streaming
```python
for chunk in llm.stream("What is RAG?"):
print(chunk.content, end="", flush=True)
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.