Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8a01e8a7
authored
Jul 23, 2024
by
Calcium-Ion
Committed by
GitHub
Jul 23, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #380 from crabkun/main
fix: 修复aws claude渠道panic的问题
parents
1962ce69
d9111d49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
relay/channel/aws/relay-aws.go
+2
-0
No files found.
relay/channel/aws/relay-aws.go
View file @
8a01e8a7
...
...
@@ -222,9 +222,11 @@ func awsStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
}
}
service
.
Done
(
c
)
if
resp
!=
nil
{
err
=
resp
.
Body
.
Close
()
if
err
!=
nil
{
return
service
.
OpenAIErrorWrapperLocal
(
err
,
"close_response_body_failed"
,
http
.
StatusInternalServerError
),
nil
}
}
return
nil
,
&
usage
}
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