ChatGPT interface with this site
ChatGPT official webpage and ordinary chat applications have not entirely replaced their underlying models with the common settings of this site’s API. You cannot fill in the site token into the ChatGPT login box, or use custom provider configuration as an official ChatGPT function.
If you are actually using another chat client that supports custom OpenAI addresses, fill in (SHANHAI_BASE_URL must be replaced with the real root address you use to access the ShangHai Do website):
| field | value |
|---|---|
| Base URL | SHANHAI_BASE_URL/v1 |
| API Key | Site Token |
| model | qwen3.8-flash or other dialogue model |
| Request format | Chat Completions |
Custom GPT Actions
Actions is the function that allows custom GPT to call external services. It can use this site as an external operation and does not replace ChatGPT's own model.
Implementation conditions:
- account can create custom GPTs and use Actions.
- service is provided through the public network HTTPS domain name, and the certificate is valid. When there is only a local address or HTTP address, the placeholder example below cannot be regarded as a configured Actions entry.
- Provide operation instructions files and set API Key / Bearer authentication in Actions. The key is entered in the authentication settings and is not written into the public description file.
After the operator prepares the HTTPS entrance, you can use the following minimum operation instructions. https://api.example.com is a placeholder address and must be replaced:
openapi: 3.1.0
info:
title: ShangHai Do模型调用
version: 1.0.0
servers:
- url: https://api.example.com
paths:
/v1/chat/completions:
post:
operationId: askShanhaiModel
summary: 调用ShangHai Do对话模型
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [model, messages]
properties:
model:
type: string
enum: [qwen3.8-flash]
messages:
type: array
items:
type: object
required: [role, content]
properties:
role:
type: string
enum: [user]
content:
type: string
stream:
type: boolean
enum: [false]
max_tokens:
type: integer
minimum: 1
maximum: 1024
responses:
'200':
description: 模型返回的对话结果
content:
application/json:
schema:
type: object
properties:
choices:
type: array
items:
type: object
properties:
message:
type: object
properties:
content:
type: string
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
The maximum output 1024 here is the limit set by this operation, not the maximum capability of the model. After configuration, you can initiate a call in the debugging interface of Actions and check the returned content. Use short conversations with non-continuous output first to avoid long-time picture and video tasks being limited by the waiting time of external tools.
References: OpenAI GPT Actions introduction, Production considerations.
encountered a problem
If you encounter problems with calling or configuration, please contact the site customer service and provide the model name, error time and error information to facilitate troubleshooting.