🐛 fix: Fixed stream completion request address error
This commit is contained in:
parent
c04dfc735f
commit
7cc37f06f0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user