🐛 fix: Fixed stream completion request address error

This commit is contained in:
MartialBE 2024-05-19 13:20:40 +08:00
parent c04dfc735f
commit 7cc37f06f0
No known key found for this signature in database
GPG Key ID: 27C0267EC84B0A5C

View File

@ -40,7 +40,7 @@ func (p *OpenAIProvider) CreateCompletion(request *types.CompletionRequest) (ope
}
func (p *OpenAIProvider) CreateCompletionStream(request *types.CompletionRequest) (stream requester.StreamReaderInterface[string], errWithCode *types.OpenAIErrorWithStatusCode) {
req, errWithCode := p.GetRequestTextBody(common.RelayModeChatCompletions, request.Model, request)
req, errWithCode := p.GetRequestTextBody(common.RelayModeCompletions, request.Model, request)
if errWithCode != nil {
return nil, errWithCode
}