Location>code7788 >text

AvaloniaChat: a simple application for translation based on a large language model

Popularity:84 ℃/2024-08-16 14:34:44

synopsis

A simple application for translation using a large language model.

A simple application using a large language model for translation.

Guidelines for use

Visit the GitHub address:/Ming-jiayou/AvaloniaChat

Notice the Releases here:

image-20240816093724343

Click on AvaloniaChat-v0.0. and it will be in the download:

image-20240816093952249

After unzipping, open the folder as shown below:

image-20240816094206770

Now simply edit the file which is used to configure the big language model you are using.

As an example, and most recommended for silicon-based flows, Qwen/Qwen2-7B-Instruct is free and reasoning is fast.

After registering Silicon Flow, create an Api Key and copy this Api Key:

image-20240816094640258

Open the file and simply fill in the Api Key if you are using silicon-based flow:

image-20240816094800525

Now the configuration is done, click on the exe file to use it:

image-20240816094827621

Ask AI questions:

image-20240816095611412

Individual's main usage scenarios

In the process of reading English literature, prefer to see against the translation, so I hope that one side is in English and the other side is in Chinese, although some software already comes with the translation function, but still like the translation of the large language model, but each time you have to copy and paste the English past but also manually add their own prompt, but also can not be compared to look at, so they are based on the Avalonia and Semantic Kernel developed this software based on Avalonia and Semantic to solve their own needs, open source out of everyone can use for free, I hope to help people with the same needs.

English to Chinese:

image-20240816100534403

Chinese to English:

image-20240816100742362

Configuring Other Large Language Models

Xunfei Starburst (1940-), Chinese science fiction writer and dramatist

Using Spark Max as an example, the file is written like this:

{
  "OpenAI": {
    "Key": "your key",
    "Endpoint": "",
    "ChatModel": "generalv3.5"
  }
}

View Api Key for CyberStarfire:

image-20240816101735673

The key for CyberStarfire looks like this APIKey:APISecret, which needs to be written as 6d3... :M... in this form:

image-20240816102020096

Verify that the configuration was successful:

image-20240816102241575

lit. zero-one million things

Take yi-large for example:

{
  "OpenAI": {
    "Key": "your key",
    "Endpoint": "",
    "ChatModel": "yi-large"
  }
}

Verify that the configuration was successful:

image-20240816102914568

ultimate

If it helps you, a Star✨ is the biggest support 😊.

If you read the guide and still have problems, feel free to contact me through my public number:

qrcode_for_gh_eb0908859e11_344