Merge branch 'main' into fix/antigravity_auth_3
This commit is contained in:
25
AGENTS.md
25
AGENTS.md
@@ -1,25 +0,0 @@
|
|||||||
<!-- OPENSPEC:START -->
|
|
||||||
# OpenSpec Instructions
|
|
||||||
|
|
||||||
These instructions are for AI assistants working in this project.
|
|
||||||
|
|
||||||
Always open `@/openspec/AGENTS.md` when the request:
|
|
||||||
- Mentions planning or proposals (words like proposal, spec, change, plan)
|
|
||||||
- Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work
|
|
||||||
- Sounds ambiguous and you need the authoritative spec before coding
|
|
||||||
|
|
||||||
Use `@/openspec/AGENTS.md` to learn:
|
|
||||||
- How to create and apply change proposals
|
|
||||||
- Spec format and conventions
|
|
||||||
- Project structure and guidelines
|
|
||||||
|
|
||||||
Keep this managed block so 'openspec update' can refresh the instructions.
|
|
||||||
|
|
||||||
<!-- OPENSPEC:END -->
|
|
||||||
|
|
||||||
## 强制语言规范
|
|
||||||
|
|
||||||
以下为强制规定:
|
|
||||||
- 与用户交流一律使用中文。
|
|
||||||
- 代码文档与代码注释一律使用中文。
|
|
||||||
- OpenSpec 提案与相关说明一律使用中文。
|
|
||||||
@@ -334,7 +334,7 @@ func (r *accountRepository) BatchUpdateLastUsed(ctx context.Context, updates map
|
|||||||
|
|
||||||
idx := 1
|
idx := 1
|
||||||
for id, ts := range updates {
|
for id, ts := range updates {
|
||||||
caseSQL += " WHEN $" + itoa(idx) + " THEN $" + itoa(idx+1)
|
caseSQL += " WHEN $" + itoa(idx) + " THEN $" + itoa(idx+1) + "::timestamptz"
|
||||||
args = append(args, id, ts)
|
args = append(args, id, ts)
|
||||||
ids = append(ids, id)
|
ids = append(ids, id)
|
||||||
idx += 2
|
idx += 2
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ func (s *AccountTestService) testOpenAIAccountConnection(c *gin.Context, account
|
|||||||
if baseURL == "" {
|
if baseURL == "" {
|
||||||
baseURL = "https://api.openai.com"
|
baseURL = "https://api.openai.com"
|
||||||
}
|
}
|
||||||
apiURL = strings.TrimSuffix(baseURL, "/") + "/v1/responses"
|
apiURL = strings.TrimSuffix(baseURL, "/") + "/responses"
|
||||||
} else {
|
} else {
|
||||||
return s.sendErrorAndEnd(c, fmt.Sprintf("Unsupported account type: %s", account.Type))
|
return s.sendErrorAndEnd(c, fmt.Sprintf("Unsupported account type: %s", account.Type))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ func (s *OpenAIGatewayService) buildUpstreamRequest(ctx context.Context, c *gin.
|
|||||||
// API Key accounts use Platform API or custom base URL
|
// API Key accounts use Platform API or custom base URL
|
||||||
baseURL := account.GetOpenAIBaseURL()
|
baseURL := account.GetOpenAIBaseURL()
|
||||||
if baseURL != "" {
|
if baseURL != "" {
|
||||||
targetURL = baseURL + "/v1/responses"
|
targetURL = baseURL + "/responses"
|
||||||
} else {
|
} else {
|
||||||
targetURL = openaiPlatformAPIURL
|
targetURL = openaiPlatformAPIURL
|
||||||
}
|
}
|
||||||
|
|||||||
0
build_image.sh
Executable file → Normal file
0
build_image.sh
Executable file → Normal file
Reference in New Issue
Block a user