निजी AI असिस्टेंट API Online
आपका अपना AI असिस्टेंट, जो आपकी सामग्री और हमारे लाइव सीमा डेटा पर आधारित है। हमें अपनी markdown फ़ाइलें दें या वे पेज बताएँ जिन्हें हम ले आएँगे — हम उन्हें इंडेक्स करते हैं और उन्हीं से जवाब देते हैं। चुनें कि वह हमारे कौन-से डेटा स्रोत इस्तेमाल कर सकता है (कतारें, पूर्वानुमान, वैकल्पिक क्रॉसिंग, ईंधन, ट्रक प्रतिबंध, अवकाश, सड़क स्थिति…), मॉडल स्तर चुनें (यही कीमत तय करता है), {{feed.slug}} प्लेसहोल्डर वाले अपने निर्देश लिखें जो बताते हैं कि हमारा डेटा जवाब में ठीक कहाँ आएगा, और अपना समापन वाक्य जोड़ें जो हर जवाब के साथ जुड़ता है। इसे /{lang}/developers/studio पर बनाएँ और परखें, फिर यहाँ से कॉल करें। प्रति उत्तर कीमत = मॉडल स्तर की यूनिट + हर सक्षम स्रोत के लिए 1 यूनिट (स्टूडियो में और X-Devapi-Units हेडर में दिखती है)।
GET https://nakordoni.eu/api/v2/data/assistant-custom
— कोटा श्रेणी: heavy
| पैरामीटर | विवरण |
|---|---|
assistant_id | Your assistant id from Developers → AI Studio (required) |
q | The end-user question, plain text, max 1000 chars (required) |
lang | Answer language code — overrides the assistant default (optional) |
ppid | Checkpoint context for queue/forecast/alternatives feeds, e.g. id_13 (optional) |
origin | Origin country code for the border feed (optional) |
destination | Destination country code for the border feed (optional) |
crossing_type | Vehicle type for border/alternatives feeds: 4=car, 6=bus, 8=truck (Freight Transport), 9=truck up to 7.5 t (optional) |
country | Country context for fuel / truck-bans / holidays / road-conditions feeds (optional) |
lat | Latitude for the POI feed (optional) |
lon | Longitude for the POI feed (optional) |
रिस्पॉन्स फ़ील्ड — रिस्पॉन्स एनवेलप के data ऑब्जेक्ट के भीतर। [] सूची दर्शाता है, यानी data.items[].name हर एलिमेंट का name फ़ील्ड है। जिस फ़ील्ड का मान हमारे पास नहीं है वह null होता है, आता ही नहीं या खाली सूची होती है — प्लेसहोल्डर कभी नहीं।
| फ़ील्ड | विवरण |
|---|---|
data.assistant_id | Which of your assistants answered, with assistant — its name. |
data.question | The question as asked, with lang. |
data.answer | The answer, grounded on your indexed content plus the feeds you enabled. |
data.model_tier | Model tier that ran — this is what sets the price, together with the feed count. |
data.sources | Your content chunks the answer drew on, so you can cite them. |
data.feeds | Our live feeds that were actually used in this answer. |
data.feeds_skipped | Feeds enabled on the assistant but skipped because the request lacked their context — each value names the parameters to pass next time. |
data.ms | How long the answer took to generate. |
curl "https://nakordoni.eu/api/v2/data/assistant-custom?assistant_id=1&q=Should I cross tonight or in the morning?&ppid=id_13&lang=uk" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
अपडेट किया गया