Complete tutorials and examples for building with the YG3 API (also known as CLM or Elysia API). From quick starts to production applications.
π Quick Start β’ π Tutorials β’ π‘ Examples β’ π API Docs
Get started with the YG3 API in under 2 minutes!
Sign up at https://app.yg3.ai and create an API key.
pip install openaiThe YG3 API is OpenAI-compatible, so you can use the familiar OpenAI SDK!
from openai import OpenAI
client = OpenAI(
api_key="your-api-key-here",
base_url="https://elysia-api.ngrok.io/api/public/v1"
)
response = client.chat.completions.create(
model="elysia",
messages=[
{"role": "user", "content": "Hello! Tell me about yourself."}
]
)
print(response.choices[0].message.content)That's it! You're now using the YG3 API. π
- π‘ The API is OpenAI-compatible - swap your base URL and you're good to go
- π Supports streaming responses
- π οΈ Works with function calling and tool use
- π¦ Compatible with LangChain, LlamaIndex, and other frameworks
Status: β Complete | Difficulty: Beginner | Time: 10 minutes
Learn how to build an AI agent that can search knowledge bases, check orders, and provide automated customer support using the ReAct (Reasoning + Acting) pattern.
What You'll Build:
- Intelligent customer support agent
- Tool calling with function execution
- Interactive Gradio web interface
- Production-ready code
Key Concepts:
- ReAct pattern
- Tool/function calling
- Prompt engineering
- Agent loops
π Start Tutorial β
Quick Stats: This is the #1 most popular agent pattern in 2025 (45.8% of AI agents use it)
We're building a comprehensive tutorial library covering:
- π Different application types
- π― Various use cases
- πΌ Production patterns
- π§ Integration guides
- π Deployment strategies
Want to see something specific? Open an issue to suggest a tutorial!
The YG3 API (also known as the CLM or Elysia API) is a powerful, OpenAI-compatible API for building intelligent applications.
- π OpenAI Compatible - Drop-in replacement, use the same code
- β‘ Fast & Reliable - Production-grade infrastructure
- π° Cost-Effective - Competitive pricing
- π οΈ Developer-Friendly - Excellent documentation and support
- π― Powerful - Advanced language understanding and generation with the YG3 family of Concentrated Language Models (CLMs)
β Chat Completions - Conversational AI β Function Calling - Tool use and actions β Streaming - Real-time responses β Context Windows - Handle long conversations β Framework Support - LangChain, LlamaIndex, and more
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="elysia",
openai_api_key="your-api-key",
openai_api_base="https://elysia-api.ngrok.io/api/public/v1"
)
response = llm.invoke("What can you help me build?")
print(response.content)from llama_index.llms.openai_like import OpenAILike
llm = OpenAILike(
model="elysia",
api_key="your-api-key",
api_base="https://elysia-api.ngrok.io/api/public/v1",
is_chat_model=True
)
response = llm.complete("Explain quantum computing")
print(response)tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string"}
}
}
}
}
]
response = client.chat.completions.create(
model="elysia",
messages=[{"role": "user", "content": "What's the weather in Tokyo?"}],
tools=tools
)https://elysia-api.ngrok.io/api/public/v1
elysia- Main production model
# Add to header
Authorization: Bearer YOUR_API_KEY
# Or in SDK
client = OpenAI(api_key="YOUR_API_KEY", base_url="...")| Parameter | Type | Description |
|---|---|---|
model |
string | Model to use (e.g., "elysia") |
messages |
array | Conversation messages |
temperature |
float | Randomness (0.0-2.0), default 0.7 |
max_tokens |
integer | Max response length |
stream |
boolean | Enable streaming responses |
tools |
array | Available functions/tools |
Full API documentation: https://help.yg3.ai
yg3-tutorials/
βββ README.md # This file
βββ tutorials/ # Complete tutorials
β βββ react-customer-support-agent/ # Part 1: ReAct agent
β βββ README.md
β βββ Customer_Support_Demo.ipynb
β
βββ examples/ # Quick examples [COMING SOON]
β βββ quickstart/ # Getting started examples [COMING SOON]
β βββ streaming/ # Streaming responses [COMING SOON]
β βββ function-calling/ # Tool use examples [COMING SOON]
β βββ integrations/ # Framework integrations [COMING SOON]
β
βββ resources/ # Additional resources [COMING SOON]
βββ api-reference.md # Detailed API docs [COMING SOON]
βββ best-practices.md # Tips and patterns [COMING SOON]
βββ troubleshooting.md # Common issues [COMING SOON]
What can you build with the YG3 API?
- π€ Customer Support - Automated support agents
- π§ Email Automation - Smart email responses
- π Data Analysis - Natural language to insights
- πΌ Sales Assistance - Lead qualification and follow-up
- π» Code Assistance - Code generation and review
- π Documentation - Auto-generated docs
- π§ͺ Testing - Test case generation
- π Code Search - Natural language code search
- βοΈ Writing - Blog posts, articles, copy
- π¨ Marketing - Ad copy, social media
- π Education - Lesson plans, explanations
- π Translation - Multilingual content
- π§ AI Agents - Autonomous decision-making systems
- π Workflows - Intelligent automation
- π― Personalization - Tailored user experiences
- π Analytics - Conversational business intelligence
Goal: Learn the basics
- Read the Quick Start
- Make your first API call
- Try different parameters
- Explore Tutorial 1
Time: 30 minutes
Goal: Build production apps quickly
- Skim Quick Start
- Review API Reference
- Check Integration Examples
- Build your use case
- Review Best Practices
Time: 15 minutes to first app
Goal: Integrate with existing tools
- Find your framework in Integration Examples
- Swap base URL in your existing code
- Test with YG3 API
- Deploy
Frameworks Supported:
- LangChain
- LlamaIndex
- Haystack
- Semantic Kernel
- AutoGen
- CrewAI
Time: 5 minutes
Ready to deploy? Make sure you have:
- Error Handling - Catch and handle API errors
- Rate Limiting - Implement backoff strategies
- API Key Security - Never expose in client-side code
- Logging - Track usage and errors
- Monitoring - Alert on failures
- Cost Tracking - Monitor token usage
- Fallbacks - Handle API downtime
- Testing - Unit and integration tests
See Best Practices for details.
We welcome contributions! Here's how:
- Fork this repository
- Create a new folder in
tutorials/ - Include: README, code, notebook
- Submit a pull request
- Fix bugs
- Add new examples
- Improve documentation
- Share your use case
- Found a bug? Open an issue
- Have a question? Start a discussion
- π Documentation: help.yg3.ai
- π¬ Discussions: GitHub Discussions
- π Issues: Report bugs
- π§ Email: support@yg3.ai
Built something cool? Share it!
- Show and Tell
- Tag
#YG3APIon social media - Submit to our showcase
- β Quick Start guide
- β Tutorial 1: ReAct Customer Support Agent
- β Integration examples
- β API reference
- π§ More comprehensive tutorials
- π§ Additional code examples
- π§ Video walkthroughs
- π§ Community showcase
- π§ Advanced patterns and use cases
Want to influence the roadmap? Share your ideas
This project is licensed under the MIT License - see the LICENSE file for details.
You're free to use, modify, and distribute this code for any purpose.
- YG3 Team - For building an amazing API
- OpenAI - For the API standard
- Community Contributors - Everyone who improves these tutorials
- You - For building with YG3!
If these tutorials helped you, give us a star! β
It helps others discover these resources.
Ready to build something amazing?
π Get Your API Key | π Start Tutorial 1 | π¬ Join Community
Built for developers, by developers π