diff --git a/pkg/plugin/stream.go b/pkg/plugin/stream.go index df878ab3..1917eba5 100644 --- a/pkg/plugin/stream.go +++ b/pkg/plugin/stream.go @@ -54,7 +54,7 @@ func (a *App) runOpenAIChatCompletionsStream(ctx context.Context, req *backend.R if err != nil { return err } - path := strings.TrimPrefix(req.Path, "/openai") + path := strings.TrimPrefix(req.Path, "openai") httpReq, err := http.NewRequestWithContext(ctx, http.MethodPost, settings.OpenAIURL+path, bytes.NewReader(outgoingBody)) httpReq.Header.Set("Authorization", fmt.Sprintf("Bearer %s", settings.openAIKey)) httpReq.Header.Set("OpenAI-Organization", settings.OpenAIOrganizationID)