Login

AI

Moonshot AI: How to access Kimi large model?

The Kimi model has attracted attention in the domestic AIGC field and has been integrated into the AI SEO CN version of the Wordpress plug-in. Developed by the Dark Side of the Moon Technology Company, it features long text input and output, up to 2 million words. Users operate on the platform through registration and API keys, and can choose different context length models. The price varies according to the model and user level, and the integrated application is easy and has good performance.

Google Gemini 1.5 Pro personal test: powerful and fragile at the same time

After testing the newly upgraded multi-modal AI model Gemini 1.5 Pro, users found that although it supports a more comprehensive input type including text, pictures, videos, files and folders, the reasoning ability has not been significantly improved, especially in distinguishing right from wrong. Additionally, processing of video, file, and folder inputs takes a long time, and there are limitations in handling large amounts of data.

SDXL: How to use Stable Diffusion

Recently, a WordPress plugin based on the latest version of Stable Diffusion XL (SDXL) was developed. Stable Diffusion is a free, open source image generation model, and the code can be downloaded directly through the official website Stability AI. Although it is more expensive and difficult to deploy the model yourself, it is possible to use a Docker image or install it manually. In addition, large models and APIs can be consumed or deployed through the Replicate.com website. In general, Stable Diffusion and SDXL are widely used in AI image generation products.

Hot topics in February 2024: Sora - Open AI's large video generation model

On February 16, 2024, Open AI released its advanced video generation model named Sora, sparking interest almost rivalling that of GPT. Sora, which is not yet available for public use, combines Transformer and diffusion architectures for high-fidelity video simulation. Open AI's TikTok showcases Sora's capabilities with unedited videos from various prompts, previewing its potential impact in the burgeoning video generation field.

Gemini 1.5 pro: How to apply

Google Gemini1.5 pro overview Google Gemini1.5 pro on February 15, 2024 […]

How to apply to use Baidu Wenxin large model?

My AI SEO WordPress plugin released a CN version today. AI SEO CN WordPress Plugin Subscription […]

Google Gemini: How to use Google’s large language model Gemini

Google's multi-modal large language model was recently released. Google Gemini official website Google Gemini is divided into three versions […]

What is AIGC: Understand AIGC in one article

AIGC refers to AI-generated content, which involves artificial intelligence generating text, pictures, videos, etc. based on prompts. Originated in 2022, the large language model is its foundation, interacting with AI agents through prompt words, context and AI. AIGC has begun to change the content industry and accelerate production efficiency. It is currently used in many directions such as chat robots and content generation, and has given rise to an industrial ecosystem with large model capabilities as its core.

The direction of generative AI—a breakthrough in robots

  AI is a big opportunity. Therefore, everyone is exploring, whether they know what to do or what they don’t know what to do. At present, the direction of exploration is mainly in […]

Time:2023/07/26

AIGC: Integrate Baidu’s Wenxin Qianfan large model into WordPress and compare it with GPT

# integrates Baidu’s Wenxin Qianfan large model into WordPress and compares it with GPT

Last weekend, Baidu’s Wenxin Qianfan model was integrated into WordPress.
1. Basic process:
1. First apply to experience the Wenxin Qianfan large model on Baidu, which requires certification first.

2. After passing, activate the large model, because Baidu's large model is charged for use and is charged by token. You need to have a balance in your account to activate it.

3. Then, create an application so that it has appid, api key and secret key

4. Then, read the documentation and connect the corresponding interface.
Basically, you get the access token through the api key and secret key, and then submit the question and get the answer.

2. Key code
1. Obtain the key code of the access token

"`php
private function getAccessToken(){
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => “https://aip.baidubce.com/oauth/2.0/token?client_id=”.$this->client_id.”&client_secret=”.$this->client_secret.”&grant_type=client_credentials”,
CURLOPT_TIMEOUT => 30,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Accept: application/json'
),

));
$response = curl_exec($curl);
curl_close($curl);
$rtn = json_decode($response);
return $rtn->access_token;
}
“`

2. Call the key code of Ernie Bot large model

"`php
public function runErnieBot($message) {
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => “https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions?access_token={$this->getAccessToken()}”,
CURLOPT_TIMEOUT => 30,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>$message,
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
“`

3. Call the key code of Ernie Bot Turbo large model

"`php
public function runErnieBotTurbo($message) {
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => “https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/eb-instant?access_token={$this->getAccessToken()}”,
CURLOPT_TIMEOUT => 30,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>$message,
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
“`

In the past few days of testing, the performance of Baidu Wenxin Qianfan's large model in Chinese is indeed much better than GPT.
The Chinese level of GPT is the level of "explanatory text".
The Chinese level of Baidu Wenxin Qianfan Large Model is at least better than the "explanatory text".



copyright © www.lyustu.com all rights reserved.
Theme: TheMoon V3.0. Author:neo yang