Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 3.75 KB

File metadata and controls

45 lines (36 loc) · 3.75 KB

Official endpoint map

Use this as a router, not a second copy of ECNU's parameter tables. Open the page for the requested capability; there is no prerequisite to read every page. The small local recipes cover integration details that otherwise get rediscovered.

Protocol roots

Client / integration Base or full URL
OpenAI-compatible https://chat.ecnu.edu.cn/open/api/v1
Anthropic-compatible base https://chat.ecnu.edu.cn/open/api/anthropic
Anthropic messages https://chat.ecnu.edu.cn/open/api/anthropic/v1/messages
Embed ticket endpoint https://chat.ecnu.edu.cn/open/api/embed/app

Do not concatenate the Anthropic path onto the OpenAI base. Keep credentials in environment variables; ticket URLs are also credentials.

Pick the contract for the task

Task Official documentation Local addition when needed
Chat, streaming, tools, image understanding Chat Completions Thinking/tool history
Responses-compatible client Responses Verify the specific advanced tool/event support; compatibility alone is insufficient
JSON Schema or JSON object output Structured output Check completion, parse raw JSON, and validate the supplied schema; do not hide a mismatch by stripping fences
Text or multimodal embeddings Vectors Text LangChain recipe or VL payloads; dimensions are model-specific
Text or multimodal rerank Rerank VL payloads; use the endpoint's contract, not an assumed OpenAI SDK method
Image generation Images Generation/edit differences; original and revised prompts can differ
Edit an existing image Image edits Multipart recipe; one uploaded image, original instruction, no output-size control
Text-to-speech Audio Non-JSON errors and PCM headers
Model discovery Models endpoint A visible ID does not prove usable capability or valid authentication
Anthropic-compatible client Anthropic API SDK setup; investigate suffix errors only when they occur
Embed an iframe Embed integration Do not log or reuse one-time tickets
Browser link that submits a question URL chat Opening a submit link sends data; do not auto-open it as a documentation check

Account and changing values

Use model/account pointers for models, thinking, current pricing, quotas, credentials, data handling, and release notes. Do not maintain duplicate copies of those changing tables here.

When documentation and behavior disagree, use the matching dated deviation. The current official page is the contract; a dated observation describes one tested environment. Neither a model card nor an accepted over-limit request establishes an ECNU API limit.