Realtime Warmup
curl --request POST \
--url https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup \
--header 'Content-Type: application/json' \
--data '
{
"language": "ja",
"session_id": "<string>",
"user_identifier": "<string>"
}
'import requests
url = "https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup"
payload = {
"language": "ja",
"session_id": "<string>",
"user_identifier": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({language: 'ja', session_id: '<string>', user_identifier: '<string>'})
};
fetch('https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'language' => 'ja',
'session_id' => '<string>',
'user_identifier' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup"
payload := strings.NewReader("{\n \"language\": \"ja\",\n \"session_id\": \"<string>\",\n \"user_identifier\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup")
.header("Content-Type", "application/json")
.body("{\n \"language\": \"ja\",\n \"session_id\": \"<string>\",\n \"user_identifier\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"language\": \"ja\",\n \"session_id\": \"<string>\",\n \"user_identifier\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}realtime-tools
Realtime Warmup
预热 catalog-agent 的 reasoning agent(felo-mygpt#3724)。
OpenAI 直连路径没有 Gemini 路径的 chat_warmup 机制,首个 taskExecutor 要现场承担约 5.7s 的 agent 构建(skill 同步 + PrePrompt hooks + MCP 加载)。 前端在 WebRTC 连接建立后 fire-and-forget 调用本端点,把构建开销挪到 寒暄阶段。预热失败绝不影响会话:上游任何错误都吞掉并返回 success=false(200),真正的工具调用会自行冷启动,行为与无预热时一致。
POST
/
v1
/
robots
/
{ai_id}
/
realtime
/
warmup
Realtime Warmup
curl --request POST \
--url https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup \
--header 'Content-Type: application/json' \
--data '
{
"language": "ja",
"session_id": "<string>",
"user_identifier": "<string>"
}
'import requests
url = "https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup"
payload = {
"language": "ja",
"session_id": "<string>",
"user_identifier": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({language: 'ja', session_id: '<string>', user_identifier: '<string>'})
};
fetch('https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'language' => 'ja',
'session_id' => '<string>',
'user_identifier' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup"
payload := strings.NewReader("{\n \"language\": \"ja\",\n \"session_id\": \"<string>\",\n \"user_identifier\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup")
.header("Content-Type", "application/json")
.body("{\n \"language\": \"ja\",\n \"session_id\": \"<string>\",\n \"user_identifier\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gbase.ai/v1/robots/{ai_id}/realtime/warmup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"language\": \"ja\",\n \"session_id\": \"<string>\",\n \"user_identifier\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}