Yiya kumxholo
I-Responses API

I-Responses API

Entsha

I-POST /v1/responses yamkela imiyalelo kunye noluhlu lweento zokufaka kwaye ibuyisa i-object yempendulo eyenziwe ngeento zokuphuma, kwifomathi ye-OpenAI Responses. Yisebenzise nge-responses API ye-OpenAI SDK nangezixhobo ezakhelwe kuyo, ezinjenge-Codex CLI. I-endpoint ayigcini ngqiqo: thumela yonke incoko kunye nesicelo ngasinye.

POST https://api.shannon-ai.com/v1/responses

Isicelo esincinci kakhulu yi-id yemodeli nombhalo. Impendulo ayiyi-stream-wa ngaphandle kokuba uyicele.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1",
)

response = client.responses.create(
    model="shannon-3",
    input="Say hello in one sentence.",
)

print(response.output_text)

Impendulo yi-object yempendulo. I-output yayo iqulathe ukuqiqa, xa imodeli iqiqile, kunye nomyalezo:

200 JSON
{
  "id": "resp_5f0c1e7a9b3d4c62a8e1f07d2b46c9a3",
  "object": "response",
  "created_at": 1791625200,
  "model": "shannon-3",
  "status": "completed",
  "error": null,
  "incomplete_details": null,
  "instructions": null,
  "metadata": {},
  "parallel_tool_calls": true,
  "temperature": null,
  "tool_choice": "auto",
  "tools": [],
  "top_p": null,
  "output": [
    {
      "id": "rs_8a2e6c1f4b7d4e03b9c5a1d70f3e2b64",
      "type": "reasoning",
      "summary": [
        {
          "type": "summary_text",
          "text": "The user wants a greeting in one sentence. Keep it short and friendly."
        }
      ]
    },
    {
      "id": "msg_1c7b9e3a5d2f4a86b0e4c8d19a6f7e25",
      "type": "message",
      "role": "assistant",
      "status": "completed",
      "content": [
        {
          "type": "output_text",
          "text": "Hello, it is good to meet you.",
          "annotations": []
        }
      ]
    }
  ],
  "usage": {
    "input_tokens": 1184,
    "output_tokens": 46,
    "total_tokens": 1230
  }
}

Iintsimi zesicelo

I-model kunye ne-input zizo ezifunekayo kwisicelo. Ikholamu ethi Isebenza kwi ibiza iimodeli apho intsimi itshintsha impendulo. Iimodeli ze-open-weight ezisingathiweyo zii-id ezilishumi elinambini zoluhlu lweemodeli; intsapho yeShannon 3 yi-shannon-3, i-shannon-3-pro, i-shannon-3.1 kunye ne-shannon-3.1-pro. Iimodeli namaxabiso

Intsimi Uhlobo Okuqhelekileyo Inkcazelo Isebenza kwi
model string Iyafuneka. I-id evela koluhlu lweemodeli. Ukuthelekisa akuhloniphi oonobumba abakhulu nabancinci. I-id engekhoyo okanye engapapashiwanga ibuyisa i-400 unknown model. Zonke iimodeli
input string | array Umtya, ofundwa njengomyalezo omnye womsebenzisi, okanye uluhlu lweentlobo ze-input. Jonga Iinto zokufaka ngezantsi. Zonke iimodeli
instructions string Imiyalelo yemodeli, i-system prompt yale fomathi. Iimodeli ze-open-weight ezisingathiweyo, i-shannon-1.6-*, i-shannon-2-*, i-shannon-coder-1
stream boolean false I-true ithumela impendulo njengemisitho ethunyelwe yi-server. Jonga Streaming ngezantsi. Zonke iimodeli
max_output_tokens integer 4096 Umda ophezulu wempendulo, ngee-token. Ixabiso elingaphandle kwe-1 ukuya kwi-65,536 lisiwa kolo luhlu. Kwakhona yisixa esigcinelwe kwibhalansi yakho ngoxa isicelo siqhuba. Jonga Umda wokuphuma ngezantsi. Iimodeli ze-open-weight ezisingathiweyo, i-shannon-1.6-*, i-shannon-2-*, i-shannon-coder-1
temperature number Ubushushu bokuthatha isampulu. Kwiimodeli ze-open-weight ezisingathiweyo amaxabiso agcinwa phakathi kwe-0 ne-2. Iimodeli ze-open-weight ezisingathiweyo; i-shannon-1.6-*, i-shannon-2-* kunye ne-shannon-coder-1 kwiimpendulo ezingekho nge-stream
top_p number Ukuthatha isampulu ye-nucleus. Amaxabiso agcinwa phakathi kwe-0 ne-1. Iimodeli ze-open-weight ezisingathiweyo
tools array Imisebenzi imodeli enokuyibiza, kwifomu ethe tyaba yale fomathi: {"type": "function", "name", "description", "parameters"}. Jonga Ii-tool ngezantsi. Zonke iimodeli
tool_choice string | object auto "auto" ivumela imodeli ukuba isigqibele. "required" iyenza ibize i-tool. {"type": "function", "name": "…"} iyenza ibize loo tool. Iimodeli ze-open-weight ezisingathiweyo
reasoning object {"effort": "…"} kunye ne-off, low, medium okanye high. Nalo naliphi na elinye ixabiso ubuyisa i-400. Iimodeli ze-open-weight ezisingathiweyo
text object {"format": {…}} icela impendulo ye-JSON. Jonga Okuphuma okucwangcisiweyo ngezantsi. Onke amanqanaba eShannon; iimodeli ze-open-weight ezisingathiweyo njengoko zidweliswe nge-id

I-previous_response_id, i-store, i-metadata, i-parallel_tool_calls, i-truncation, i-include, i-user kunye ne-prompt_cache_key ziyamkelwa ukuze ikhowudi ye-client ekhoyo isebenze ngaphandle kotshintsho. Azitshintshi mpendulo. Ngenxa yokuba akukho ncoko igcinwayo, isicelo esilandelayo sithwala imijikelo yangaphambili kwi-input.

Iinto zokufaka

Into yokufaka ngumyalezo, kunye ne-role ne-content, okanye into enohlobo ethwala ubizo lwe-tool okanye isiphumo salo. I-content ngumtya okanye uluhlu lweenxalenye.

Into Inkcazelo Isebenza kwi
{"role": "user", "content": …} Oko ukubuzayo. I-content ngumtya, okanye iinxalenye ze-input_text kunye ne-input_image. Zonke iimodeli
{"role": "assistant", "content": …} Impendulo yangaphambili yemodeli. I-content ngumtya, okanye iinxalenye ze-output_text. Zonke iimodeli
{"role": "system", "content": …}
{"role": "developer", "content": …}
Imiyalelo ngaphakathi kwincoko. Iimodeli ze-open-weight ezisingathiweyo
{"type": "function_call", "call_id": "…", "name": "…", "arguments": "…"} Ubizo lwe-tool olwenziwe yimodeli kwimpendulo yangaphambili. I-arguments ngumtya we-JSON. Zonke iimodeli
{"type": "function_call_output", "call_id": "…", "output": "…"} Isiphumo salolo bizo. I-call_id yi-id yobizo kwaye i-output isiphumo njengomtya. Zonke iimodeli

Beka imiyalelo kwintsimi ye-instructions. Nge-id yentsapho yeShannon 3, beka imiyalelo ekufuneka ihlale kumyalezo we-user.

Iinto ze-output yempendulo zinokubuyela kwi-input njengoko zinjalo: iinto ze-message kunye ne-function_call ziyafundwa, iinto ze-reasoning ziyatsitywa.

Iinxalenye zomxholo

Inxalenye Inkcazelo Iyafumaneka kwi
{"type": "input_text", "text": "…"} Umbhalo womyalezo womsebenzisi. Zonke iimodeli
{"type": "output_text", "text": "…"} Umbhalo womyalezo wesincedisi. Zonke iimodeli
{"type": "input_image", "image_url": "…"} Umfanekiso, njenge-URL ye-data: enomxholo we-base64 okanye njenge-URL ye-http(s). Intsapho yeShannon 3, i-shannon-1.6-lite, i-shannon-1.6-pro, kunye neemodeli ze-open-weight ezisingathiweyo ezidwelisa igalelo lemifanekiso
{"type": "input_file", "file_data": "data:application/pdf;base64,…"} Uxwebhu (PDF, Word, PowerPoint okanye Excel): i-file_data iqulathe i-URL ye-data:, okanye i-file_url i-URL ye-http(s). Intsapho yeShannon 3

Kumanqanaba eShannon imifanekiso neefayile zifundwa kwinto yokugqibela ye-user ye-input. Ubungakanani nemida inephepha lazo. Imifanekiso neefayile

Isicelo esinemiyalelo neenketho

Esi sicelo sithumela imiyalelo, incoko njengeento zokufaka, umda wokuphuma, ubushushu kunye nobunzulu bokuqiqa. Sisebenzisa imodeli ye-open-weight esingathiweyo, eyisebenzisa zonke.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1",
)

response = client.responses.create(
    model="DeepSeek-V4-Flash-0731-W4A16-AUTOROUND-REAP",
    instructions="You are a physics teacher. Answer in two sentences.",
    input=[
        {"role": "user", "content": "Why is the sky blue?"},
        {"role": "assistant", "content": "Air scatters blue light more than red light."},
        {"role": "user", "content": "And why are sunsets red?"},
    ],
    max_output_tokens=512,
    temperature=0.3,
    reasoning={"effort": "low"},
)

for item in response.output:
    if item.type == "reasoning":
        print("reasoning:", item.summary[0].text)
    elif item.type == "message":
        print("answer:", item.content[0].text)
print(response.usage)

Impendulo yemodeli ye-open-weight esingathiweyo inayo i-id, i-object, i-model, i-created_at, i-status, i-output kunye ne-usage. I-usage yayo yongeza ii-token ezifundwe kwi-cache kunye nee-token ezisetyenziswe ekuqiqeni:

200 JSON
{
  "usage": {
    "input_tokens": 58,
    "input_tokens_details": {
      "cached_tokens": 0
    },
    "output_tokens": 67,
    "output_tokens_details": {
      "reasoning_tokens": 19
    },
    "total_tokens": 125
  }
}

I-object yempendulo

I-id, i-object, i-status, i-output kunye ne-usage zikuyo yonke impendulo. Yakha ikhowudi yakho kuzo.

Intsimi Uhlobo Inkcazelo Ithunyelwa yi
id string I-resp_ elandelwa ziinhlobo ezingama-32 ze-hexadecimal. Zonke iimodeli
object string Ihlala i-response. Zonke iimodeli
status string completed. Kwi-stream iqala ngokuba yi-in_progress, kwaye yi-failed kumsitho we-response.failed. Zonke iimodeli
output array Iinto zokuphuma ngolandelelwano imodeli ezivelise ngalo: i-reasoning, i-message, i-function_call. Zonke iimodeli
usage object I-input_tokens, i-output_tokens kunye ne-total_tokens. Zonke iimodeli
usage.input_tokens_details object I-cached_tokens: ii-token zokufaka ezifundwe kwi-cache ye-prompt. Iimodeli ze-open-weight ezisingathiweyo
usage.output_tokens_details object I-reasoning_tokens: ii-token zokuphuma ezisetyenziswe ekuqiqeni. Iimodeli ze-open-weight ezisingathiweyo
model string I-id esemthethweni yemodeli ephendulileyo. Intsapho yeShannon 3, iimodeli ze-open-weight ezisingathiweyo
created_at integer Ixesha lempendulo, ngemizuzwana ye-Unix. Intsapho yeShannon 3, iimodeli ze-open-weight ezisingathiweyo
instructions, tools, temperature, … I-instructions, i-tools kunye ne-temperature ziphinda isicelo. I-error kunye ne-incomplete_details zi-null, i-metadata yi-{}, i-parallel_tool_calls yi-true, i-tool_choice yi-auto kwaye i-top_p yi-null. Intsapho yeShannon 3

Iinto zokuphuma

Into Inkcazelo
{"id": "rs_…", "type": "reasoning", "summary": [{"type": "summary_text", "text": "…"}]} Ukuqiqa kwemodeli njengenxalenye enye ye-summary_text. Ikhona kuphela xa imodeli iqiqile.
{"id": "msg_…", "type": "message", "role": "assistant", "content": [{"type": "output_text", "text": "…"}]} Impendulo: inxalenye enye ye-output_text enombhalo.
{"id": "fc_…", "type": "function_call", "call_id": "call_…", "name": "…", "arguments": "…"} Ubizo lwe-tool. I-arguments ngumtya we-JSON. Buyisela isiphumo nge-call_id efanayo.

Ii-OpenAI SDK zikudibanisela umbhalo womyalezo kwi-response.output_text.

Streaming

Misela i-stream ibe yi-true kwimisitho ethunyelwe yi-server. I-frame nganye inomgca we-event: onegama lomsitho kunye nomgca we-data: one-JSON object; i-object iphinda igama kwi-type. Dibanisa ii-delta neento zazo nge-output_index.

Nge-OpenAI SDK, funda imisitho ngo-type wayo:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1",
)

stream = client.responses.create(
    model="shannon-3",
    input="Explain server-sent events in three sentences.",
    stream=True,
)

for event in stream:
    kind = getattr(event, "type", "error")     # an event without a type is an error event
    if kind == "response.reasoning_summary_text.delta":
        pass                                   # a piece of reasoning: event.delta
    elif kind == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    elif kind == "response.output_item.done" and event.item.type == "function_call":
        print("\ntool call:", event.item.name, event.item.arguments)
    elif kind == "response.completed":
        print("\n", event.response.usage)
    elif kind in ("response.failed", "error"):
        raise RuntimeError("the stream failed, send the request again")

Imisitho ifika ngolu landelelwano. Amaqela okuqiqa, omyalezo kunye nobizo lwee-tool avela kuphela xa impendulo inawo.

Umsitho Umthwalo Xa
response.created response Ihlala yokuqala. I-response.status yi-in_progress kwaye i-response.output ayinanto.
response.in_progress response Ihlala yesibini, kunye ne-object efanayo.
response.output_item.added output_index, item Ukuqiqa kuyaqala: into ye-reasoning kunye ne-summary engenanto.
response.reasoning_summary_text.delta output_index, summary_index, delta Isahlulo sokuqiqa.
response.reasoning_summary_text.done output_index, summary_index, text Ukuqiqa kugqityiwe: lonke i-text yalo.
response.output_item.done output_index, item Into egqityiweyo ye-reasoning.
response.output_item.added output_index, item Impendulo iyaqala: into ye-message enesimo in_progress kwaye ingenamxholo.
response.content_part.added output_index, content_index, part Inxalenye engenanto ye-output_text iyavulwa.
response.output_text.delta output_index, content_index, delta Isahlulo sempendulo.
response.output_text.done output_index, content_index, text Impendulo igqityiwe: lonke i-text yayo.
response.content_part.done output_index, content_index, part Inxalenye egqityiweyo ye-output_text.
response.output_item.done output_index, item Into egqityiweyo ye-message, enesimo completed.
response.output_item.added output_index, item Ubizo lwe-tool luyaqala: into ye-function_call kunye ne-call_id, i-name kunye ne-arguments engenanto.
response.function_call_arguments.delta output_index, delta Ii-argument zobizo, ziphelele kwi-delta enye.
response.function_call_arguments.done output_index, arguments Ii-argument ezifanayo, njenge-arguments.
response.output_item.done output_index, item Into egqityiweyo ye-function_call.
response.completed response Ihlala yokugqibela xa kuphumelele: yonke i-object yempendulo kunye ne-output ne-usage.
200 text/event-stream
event: response.created
data: {"type":"response.created","response":{"id":"resp_5f0c…","object":"response","status":"in_progress","output":[], …}}

event: response.in_progress
data: {"type":"response.in_progress","response":{"id":"resp_5f0c…","object":"response","status":"in_progress","output":[], …}}

event: response.output_item.added
data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_1c7b…","type":"message","role":"assistant","status":"in_progress","content":[]}}

event: response.content_part.added
data: {"type":"response.content_part.added","output_index":0,"content_index":0,"part":{"type":"output_text","text":""}}

event: response.output_text.delta
data: {"type":"response.output_text.delta","output_index":0,"content_index":0,"delta":"Server-sent"}

event: response.output_text.delta
data: {"type":"response.output_text.delta","output_index":0,"content_index":0,"delta":" events let a server push text over one HTTP reply."}

event: response.output_text.done
data: {"type":"response.output_text.done","output_index":0,"content_index":0,"text":"Server-sent events let a server push text over one HTTP reply."}

event: response.content_part.done
data: {"type":"response.content_part.done","output_index":0,"content_index":0,"part":{"type":"output_text","text":"Server-sent events let a server push text over one HTTP reply."}}

event: response.output_item.done
data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_1c7b…","type":"message","role":"assistant","status":"completed","content":[{"type":"output_text","text":"Server-sent events let a server push text over one HTTP reply.","annotations":[]}]}}

event: response.completed
data: {"type":"response.completed","response":{"id":"resp_5f0c…","object":"response","status":"completed","output":[…],"usage":{"input_tokens":1190,"output_tokens":18,"total_tokens":1208}, …}}

I-stream esilelayo

Kumanqanaba eShannon impendulo esilele iphela nge-response.failed endaweni ye-response.completed. I-response.status yayo yi-failed kwaye i-response.error iqulathe i-code, i-rate_limit_exceeded okanye i-server_error, kunye ne-message.

Kwiimodeli ze-open-weight ezisingathiweyo isilele ngumsitho we-error kunye ne-code api_error kunye ne-message. I-response.completed isalandela.

Thatha i-stream njengesilele xa iqulathe umsitho we-response.failed okanye we-error, uze uthumele isicelo kwakhona.

Ii-tool

I-tool ngumsebenzi ogqitywa yikhowudi yakho. Uchaze kwi-tools; xa imodeli iyifuna, impendulo iqulathe into ye-function_call endaweni yomyalezo, okanye ecaleni kwawo.

Uchazo lwe-tool kwi-tools:

tools
[
  {
    "type": "function",
    "name": "get_weather",
    "description": "Current weather for a city.",
    "parameters": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        }
      },
      "required": [
        "city"
      ]
    }
  }
]

I-output yempendulo ebiza yona:

200 output
[
  {
    "id": "call_3d9a7c1e5b2f4a60c8e1d7f09b24a6c5",
    "type": "function_call",
    "name": "get_weather",
    "call_id": "call_3d9a7c1e5b2f4a60c8e1d7f09b24a6c5",
    "arguments": "{\"city\":\"Paris\"}"
  }
]

Qhuba umsebenzi, uze uthumele isicelo kwakhona kunye nobizo nesiphumo salo songezwe kwi-input:

input
[
  {
    "role": "user",
    "content": "What is the weather in Paris?"
  },
  {
    "type": "function_call",
    "call_id": "call_3d9a7c1e5b2f4a60c8e1d7f09b24a6c5",
    "name": "get_weather",
    "arguments": "{\"city\":\"Paris\"}"
  },
  {
    "type": "function_call_output",
    "call_id": "call_3d9a7c1e5b2f4a60c8e1d7f09b24a6c5",
    "output": "{\"temperature_c\": 18, \"sky\": \"cloudy\"}"
  }
]

Ii-tool zohlobo function kuphela ziyafundwa. Kwi-shannon-1.6-*, i-shannon-2-* kunye ne-shannon-coder-1 i-schema ye-parameters incitshiswa ibe ngamagama angundoqo e-JSON Schema aqhelekileyo: i-oneOf ifundwa njenge-anyOf, kwaye amagama angundoqo anjenge-$ref, i-additionalProperties, i-const, i-default kunye ne-title awadluliselwa kwimodeli.

Amaxabiso e-tool_choice athi required nomsebenzi obizwe ngegama asetyenziswa ziimodeli ze-open-weight ezisingathiweyo.

Iluphu ye-tool ichazwe ngokupheleleyo kwiphepha layo. Umsebenzi Ukufowuna

Okuphuma okucwangcisiweyo

Le fomathi ibhala okuphuma okucwangcisiweyo njenge-text.format. I-schema ihlala ngqo kwi-format, ecaleni kwe-name kunye ne-strict, hayi phantsi kwelungu le-json_schema njengakwi-Chat Completions.

  • {"type": "json_object"} icela nayiphi na i-JSON object.
  • {"type": "json_schema", "name", "schema", "strict"} icela i-JSON elandela i-schema yakho. I-strict yi-true xa uyishiya ngaphandle.
POST /v1/responses
{
  "model": "shannon-1.6-lite",
  "input": "Extract the city and the date: 'The conference opens in Lisbon on 12 May 2027.'",
  "text": {
    "format": {
      "type": "json_schema",
      "name": "event",
      "strict": true,
      "schema": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "description": "ISO 8601 date"
          }
        },
        "required": [
          "city",
          "date"
        ]
      }
    }
  }
}

I-JSON ifika njengombhalo kwinxalenye ye-output_text yomyalezo; ihlalutye ngokwakho. Imodeli ye-open-weight esingathiweyo engenakuphuma okucwangcisiweyo ibuyisa i-400.

output_text
{"city": "Lisbon", "date": "2027-05-12"}

Yeyiphi imodeli yamkela eyiphi ifomu idweliswe kwiphepha layo. Iziphumo ezicwangcisiweyo

Ukuqiqa

Imodeli eqiqayo ibuyisa ukuqiqa kwayo njengento yokuphuma yohlobo reasoning, phambi komyalezo. Kwi-stream ifika njengemisitho ye-response.reasoning_summary_text.delta.

Iimodeli ze-open-weight ezisingathiweyo zisebenzisa i-reasoning.effort: off, low, medium okanye high, kunye ne-high xa ungathumeli nto. I-off ayibuyisi nto yokuqiqa. Yithumele njenge-object; umtya nje awufundwa kule endpoint.

Amanqanaba obunzulu achazwe kwiphepha lawo. I-effort yokuqiqa

Umda wokuphuma

I-max_output_tokens yi-4,096 xa ungayithumeli. Linani lee-token ezigcinelwe kwibhalansi yakho xa isicelo siqala; xa impendulo igqityiwe, loo sixa sibuyiselwa yinto isicelo esiyisebenzisileyo. Ixabiso elingangeni kwibhalansi yakho eseleyo libuyisa i-429 Quota exceeded.

Ilinganisa ubude bempendulo kwi-shannon-1.6-*, i-shannon-2-* kunye ne-shannon-coder-1, kunye nobude bombhalo wempendulo kwiimodeli ze-open-weight ezisingathiweyo.

Kule endpoint i-shannon-coder-1 ihlawulwa ngee-token ezivela kwibhalansi yakho, njengayo yonke enye imodeli.

Umzimba wesicelo unokuba ngu-32 MiB ubuninzi. Imida nebhalansi

Iimpazamo

Iimpazamo zisebenzisa umzimba wempazamo we-OpenAI: i-object ye-error kunye ne-type ne-message; ezinye zikwathwala i-code kunye ne-param enexabiso elithi null. Itheyibhile idwelisa oko le endpoint ikubuyisa rhoqo. Uluhlu olupheleleyo, kunye nokuba yintoni ekufuneka uyizame kwakhona, lunephepha lalo. Ukuphatha imposiso

Isimo Uhlobo Umyalezo Xa
401 authentication_error Missing authentication
Invalid API key
Akukho API key ethunyelweyo, okanye isitshixo asaziwa okanye sibhangisiwe.
400 invalid_request_error unknown model: <id> I-model ayikho okanye ayiyiyo i-id epapashiweyo.
400 invalid_request_error No user message provided. Amanqanaba eShannon: i-input ayiqulathanga mbhalo womsebenzisi.
400 invalid_request_error <id> does not accept image input Umfanekiso uthunyelwe kwimodeli ye-open-weight esingathiweyo engenagalelo lomfanekiso.
400 invalid_request_error <id> does not accept response_format I-text.format ithunyelwe kwimodeli ye-open-weight esingathiweyo engenakuphuma okucwangcisiweyo.
400 invalid_request_error unknown reasoning effort '<value>'; expected off, low, medium or high I-reasoning.effort iqulathe ixabiso elingaphandle koluhlu.
422 invalid_request_error Failed to deserialize the JSON body into the target type: … Umzimba yi-JSON esebenzayo kodwa intsimi inohlobo olungalunganga.
429 rate_limit_error Quota exceeded. Upgrade your plan at shannon-ai.com/plan I-max_output_tokens inkulu kunokusele kushiyekile kwibhalansi yakho.
429 rate_limit_error Too many requests. Retry in <n>s. Flood protection: izicelo ezingaphezu kwe-120 kumzuzu omnye kwiakhawunti yakho.
500 api_error The model backend failed to answer. Please retry. Imodeli ayivelisanga mpendulo. Thumela isicelo kwakhona.
502 api_error The model backend failed to answer. Please retry. Into enye, kwiimodeli ze-open-weight ezisingathiweyo.
504 api_error upstream timed out Imodeli ye-open-weight esingathiweyo ithathe ixesha elide kunomda wexesha wempendulo engekho nge-stream. Ithumele ngokumisela i-stream ibe yi-true.