Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Union Alpha Examples

Code examples for using the Union Alpha model via OpenRouter and Tokenra APIs.

Quick Start

Prerequisites

Basic Example

```python import openai

client = openai.OpenAI( base_url="https://tokenra.io/v1", api_key="YOUR_API_KEY" )

response = client.chat.completions.create( model="union-alpha", messages=[{"role": "user", "content": "Hello!"}] ) ```

Examples

  • basic_chat.py - Simple chat completion
  • tool_calling.py - Function calling example
  • streaming.py - Streaming responses
  • multimodal.py - Text + image input

Resources

About

Union Alpha API examples and starter code - Free 262K multimodal LLM on TokenRa

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors