Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 730 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 730 Bytes

Translator

Prerequisites

Quick Start

First, start a server in one terminal:

export AZURE_MODEL="your-model-name"
export AZURE_API_BASE="your-api-base"
export AZURE_API_VERSION="your-api-version"
export AZURE_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