|
1 | | -addr = "0.0.0.0:8070" |
| 1 | +addr = "0.0.0.0:8080" |
2 | 2 | hello_wav = "hello.wav" |
3 | 3 |
|
| 4 | +# Get your API key from https://bailian.console.aliyun.com/ |
| 5 | + |
4 | 6 | [asr] |
5 | | -# platform = "paraformer_v2" |
6 | | -platform = "ParaformerV2" |
7 | | -paraformer_token = "API Key" |
| 7 | +platform = "paraformer_v2" |
| 8 | +url = "wss://dashscope.aliyuncs.com/api-ws/v1/inference" |
| 9 | +paraformer_token = "sk-API-KEY" |
8 | 10 |
|
9 | | -# Get your API key from https://bailian.console.aliyun.com/ |
10 | 11 |
|
11 | 12 | [tts] |
12 | | -# platform = "cosyvoice" |
13 | | -platform = "CosyVoice" |
14 | | -token = "API Key" |
| 13 | +platform = "cosyvoice" |
| 14 | +url = "wss://dashscope.aliyuncs.com/api-ws/v1/inference" |
| 15 | +token = "sk-API-KEY" |
15 | 16 | speaker = "longhua_v2" |
16 | 17 |
|
17 | | -# Get your API key from https://bailian.console.aliyun.com/ |
18 | 18 | # Supported platforms: cosyvoice-v2 (default) and cosyvoice-v1 |
19 | 19 | # Get speaker list from https://help.aliyun.com/zh/model-studio/cosyvoice-java-sdk#722dd7ca66a6x |
20 | 20 |
|
21 | 21 | [llm] |
22 | | -platform = "chat" |
| 22 | +platform = "openai_chat" |
23 | 23 | url = "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions" |
24 | | -api_key = "API-key" |
| 24 | +api_key = "sk-API-KEY" |
25 | 25 | model = "qwen-plus" |
26 | 26 | history = 5 |
27 | 27 |
|
28 | | -# Get your API key from https://bailian.console.aliyun.com/ |
29 | | -# Any text generation models is supported. |
30 | | - |
| 28 | +[llm.extra] |
| 29 | +enable_search = true |
31 | 30 |
|
32 | 31 | [[llm.sys_prompts]] |
33 | 32 | role = "system" |
34 | 33 | content = """ |
35 | | -你叫胡桃,是一个优秀的翻译官。你现在的任务是,把我给你的中文翻译成英文,并且用英文回答我。 |
| 34 | +You are a helpful assistant. Answer truthfully and concisely. |
36 | 35 |
|
37 | | -你说话时必须满足以下格式 |
38 | | -第一行是你当前的状态或者要执行的动作,第二行开始是你的对话内容 |
| 36 | +- NEVER use bullet points |
| 37 | +- NEVER use tables |
| 38 | +- Answer in complete sentences as if you are in a conversation. |
| 39 | +- Use the web_search tool if you need information about current events such as news, political figures, stock prices, and crypto prices. |
39 | 40 |
|
40 | | -比如: |
41 | | -[翻译] |
42 | | -这句话的翻译是 "I am a translator"。 |
43 | | -""" |
| 41 | +------ |
44 | 42 |
|
45 | | -[[llm.sys_prompts]] |
46 | | -role = "user" |
47 | | -content = """ |
48 | | -我是一个翻译官 |
49 | | -""" |
| 43 | +您是一位乐于助人的助手。请如实简洁地回答问题。 |
| 44 | +
|
| 45 | +- 切勿使用列表 |
| 46 | +- 切勿使用表格 |
| 47 | +- 请使用完整的句子回答,就像在对话一样。 |
| 48 | +- 如果您需要了解时事信息,例如新闻、政治人物、股票价格和加密货币价格,请使用 web_search tool。 |
50 | 49 |
|
51 | | -[[llm.sys_prompts]] |
52 | | -role = "assistant" |
53 | | -content = """ |
54 | | -[翻译] |
55 | | -这句话的翻译是 "I am a translator"。 |
56 | 50 | """ |
| 51 | + |
0 commit comments