சம்பந்தப்பட்ட கேள்விகள்
Magisterium AI API அந்தப் பதில் ஆராய்ச்சியில் related_questions புலம் மூலம் தொடர்புடைய கேள்விகளை திருப்பவும் முடியும். இந்தப் புலம் விருப்பமானது. தொடர்புடைய கேள்விகளை திருப்பவும், உங்கள் கேட்டலில் return_related_questions அ PARAMETERS ஐ true ஆக அமைக்க வேண்டும்.
python
url = "https://www.magisterium.com/api/v1/chat/completions"
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
}
data = {
"model": "magisterium-1",
"messages": [
{
"role": "user",
"content": "What is the Magisterium?",
}
],
"stream": False,
"return_related_questions": True
}தொடர்புடைய கேள்விகள் பதில் ஆராய்ச்சியில் சரங்களின் பள்ளியாக சேர்க்கப்படும்.
json
{
"object": "chat.completion",
"related_questions": [
"What is the Magisterium's teaching on faith and morals?",
"What is the Magisterium's teaching on Scripture?",
"What is the Magisterium's teaching on tradition?",
],
// other fields ...
}பிரசாரம்
குறிப்பு போல், தொடர்புடைய கேள்விகள் கடைசி துண்டில் _ மட்டுமே_ சேர்க்கப்படுகின்றன.