Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
1ecef269
Commit
1ecef269
authored
Dec 30, 2025
by
shaw
Browse files
fix: 去除openai-apkey账户请求路径多余的v1
parent
5cad90fb
Changes
4
Hide whitespace changes
Inline
Side-by-side
AGENTS.md
deleted
100644 → 0
View file @
5cad90fb
<!-- 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 提案与相关说明一律使用中文。
backend/internal/service/account_test_service.go
View file @
1ecef269
...
@@ -328,7 +328,7 @@ func (s *AccountTestService) testOpenAIAccountConnection(c *gin.Context, account
...
@@ -328,7 +328,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
))
}
}
...
...
backend/internal/service/openai_gateway_service.go
View file @
1ecef269
...
@@ -371,7 +371,7 @@ func (s *OpenAIGatewayService) buildUpstreamRequest(ctx context.Context, c *gin.
...
@@ -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
}
}
...
...
build_image.sh
100755 → 100644
View file @
1ecef269
File mode changed from 100755 to 100644
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment