نستخدم ملفات تعريف الارتباط. تُبقيك ملفات تعريف الارتباط وتخزين المتصفح مسجّلًا للدخول وتتذكر تفضيلاتك. وبإذنك نقيس أيضًا كيفية استخدام الموقع. يمكنك في أي وقت. راجع سياسة ملفات تعريف الارتباط.
Ant Digital: LingDT Decision Fast 1.0 (free) في لمحة
نافذة سياق من 32,768 رمز، تكفي للمستندات الطويلة والمحادثات متعددة الأدوار.
كيف تستدعي Ant Digital: LingDT Decision Fast 1.0 (free) API
أنشئ مفتاح API في لوحة التحكم.
ثبّت حزمة openai SDK الرسمية للغتك.
اضبط baseURL على https://api14.com/api/v1 وmodel على "antdigital/lingdt-decision-fast-1.0:free".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.post("/decisions", { body: {
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
} });
console.log(result.answers);
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api14.com/api/v1",
api_key=os.environ["API14_API_KEY"],
)
result = client.post("/decisions", body={
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}, cast_to=dict)
print(result["answers"])
curl https://api14.com/api/v1/decisions \
-H "Authorization: Bearer $API14_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}`)
req, _ := http.NewRequest("POST", "https://api14.com/api/v1/decisions", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("API14_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}
<?php
$ch = curl_init("https://api14.com/api/v1/decisions");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("API14_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"model" => "antdigital/lingdt-decision-fast-1.0:free",
"state" => "Customer: I was charged twice for my order and want my money back.",
"questions" => [
"team" => [
"type" => "choice",
"instructions" => "Which team should handle this message?",
"criteria" => [
"billing" => "Payments, refunds, invoices",
"support" => "Product questions and bugs",
"sales" => "Pricing and new purchases"
]
],
"urgent" => [
"type" => "noul",
"instructions" => "Does this need a reply today?",
"criteria" => [
"true" => "Money, outage or legal risk",
"false" => "Can wait"
]
]
]
]),
]);
$response = json_decode(curl_exec($ch), true);
print_r($response);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api14.com/api/v1/decisions"))
.header("Authorization", "Bearer " + System.getenv("API14_API_KEY"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using System.Net.Http.Headers;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("API14_API_KEY"));
var body = """
{
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}
""";
var res = await http.PostAsync("https://api14.com/api/v1/decisions", new StringContent(body, Encoding.UTF8, "application/json"));
Console.WriteLine(await res.Content.ReadAsStringAsync());
require "net/http"
require "json"
uri = URI("https://api14.com/api/v1/decisions")
req = Net::HTTP::Post.new(uri, {
"Authorization" => "Bearer #{ENV["API14_API_KEY"]}",
"Content-Type" => "application/json",
})
req.body = {
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |h| h.request(req) }
puts JSON.parse(res.body)
// Cargo.toml: reqwest = { version = "0.12", features = ["json"] }, tokio = { version = "1", features = ["full"] }, serde_json = "1"
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let key = std::env::var("API14_API_KEY")?;
let res = reqwest::Client::new()
.post("https://api14.com/api/v1/decisions")
.bearer_auth(key)
.json(&json!({
"model": "antdigital/lingdt-decision-fast-1.0:free",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
المواصفات
طول السياق
32,768
الحد الأقصى للإخراج
29,491
الإدخال
text
الإخراج
decisions
الطلبات على api14 · آخر 7 أيام
Ant Digital: LingDT Decision Fast 1.0 (free): الأسئلة الشائعة
كم تكلفة Ant Digital: LingDT Decision Fast 1.0 (free) API؟
استدعاء Ant Digital: LingDT Decision Fast 1.0 (free) مجاني (0$ لكل رمز)، لكنه يتطلب اشتراكًا فعّالًا. أي خطة مدفوعة تتيح لك استخدام جميع النماذج المجانية دون رسوم، ضمن حد معدل الطلبات في خطتك؛ قم بالترقية من /pricing.
ما نافذة السياق في Ant Digital: LingDT Decision Fast 1.0 (free)؟
يقرأ Ant Digital: LingDT Decision Fast 1.0 (free) حتى 32,768 رمز في الطلب الواحد، الموجّه والسجل والمستندات معًا. ويكتب حتى 29,491 رمز إخراج في كل استجابة.
ماذا يستطيع Ant Digital: LingDT Decision Fast 1.0 (free) أن يفعل؟
يقبل Ant Digital: LingDT Decision Fast 1.0 (free) text ويعيد decisions.
كيف أستدعي Ant Digital: LingDT Decision Fast 1.0 (free) من الكود الخاص بي؟
وجّه أي OpenAI SDK إلى https://api14.com/api/v1 واضبط model على "antdigital/lingdt-decision-fast-1.0:free"، دون أي تغييرات أخرى في الكود. انسخ مثالًا جاهزًا من لوحة الكود في هذه الصفحة.
ما بدائل Ant Digital: LingDT Decision Fast 1.0 (free)؟
نماذج قرارات مماثلة بسعر قريب: Perplexity: Decider Flash V1.3 (free), Perplexity: Decider V1.3 (free), Perplexity: Decider Flash Latest (free). تعمل جميعها بمفتاح API نفسه، فالتبديل مجرد تغيير سلسلة واحدة.
مجتمع Ant Digital: LingDT Decision Fast 1.0 (free)