Skip to content

Commit f3f3127

Browse files
committed
refactor(wsrelay): rename RoundTrip to NonStream
1 parent 7061cd6 commit f3f3127

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/runtime/executor/aistudio_executor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (e *AistudioExecutor) Execute(ctx context.Context, auth *cliproxyauth.Auth,
7272
AuthValue: authValue,
7373
})
7474

75-
wsResp, err := e.relay.RoundTrip(ctx, e.provider, wsReq)
75+
wsResp, err := e.relay.NonStream(ctx, e.provider, wsReq)
7676
if err != nil {
7777
recordAPIResponseError(ctx, e.cfg, err)
7878
return resp, err
@@ -220,7 +220,7 @@ func (e *AistudioExecutor) CountTokens(ctx context.Context, auth *cliproxyauth.A
220220
AuthType: authType,
221221
AuthValue: authValue,
222222
})
223-
resp, err := e.relay.RoundTrip(ctx, e.provider, wsReq)
223+
resp, err := e.relay.NonStream(ctx, e.provider, wsReq)
224224
if err != nil {
225225
recordAPIResponseError(ctx, e.cfg, err)
226226
return cliproxyexecutor.Response{}, err

internal/wsrelay/http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ type StreamEvent struct {
3535
Err error
3636
}
3737

38-
// RoundTrip executes a non-streaming HTTP request using the websocket provider.
39-
func (m *Manager) RoundTrip(ctx context.Context, provider string, req *HTTPRequest) (*HTTPResponse, error) {
38+
// NonStream executes a non-streaming HTTP request using the websocket provider.
39+
func (m *Manager) NonStream(ctx context.Context, provider string, req *HTTPRequest) (*HTTPResponse, error) {
4040
if req == nil {
4141
return nil, fmt.Errorf("wsrelay: request is nil")
4242
}

0 commit comments

Comments
 (0)