Skip to content

Latest commit

 

History

History

translator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Translator

Prerequisites

Quick Start

First, start a server in one terminal:

export MODEL_ID="your-model-id"
export MODEL_BASE_URL="your-base-url"
export MODEL_API_VERSION="your-api-version"
export MODEL_API_KEY="your-api-key"

python examples/translator/translator.py

Then communicate with the agent using the coagent CLI:

coagent translator -H type:ChatHistory -d '{"messages":[{"role":"user","content":"你好"}]}' --chat

Or start a more-friendly rich client in another terminal:

python examples/rich_client.py translator