mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 13:43:42 +08:00
🔖 chore: Remove invalid code
This commit is contained in:
@@ -28,7 +28,7 @@ type AzureSpeechProvider struct {
|
||||
base.BaseProvider
|
||||
}
|
||||
|
||||
func (p *AzureSpeechProvider) GetFullRequestURL(requestURL string, modelName string) string {
|
||||
func (p *AzureSpeechProvider) GetFullRequestURL(requestURL string) string {
|
||||
baseURL := ""
|
||||
if p.Channel.Other != "" {
|
||||
baseURL = fmt.Sprintf("https://%s.tts.speech.microsoft.com", p.Channel.Other)
|
||||
|
||||
@@ -87,7 +87,7 @@ func (p *AzureSpeechProvider) CreateSpeech(request *types.SpeechAudioRequest) (*
|
||||
if errWithCode != nil {
|
||||
return nil, errWithCode
|
||||
}
|
||||
fullRequestURL := p.GetFullRequestURL(url, request.Model)
|
||||
fullRequestURL := p.GetFullRequestURL(url)
|
||||
headers := p.GetRequestHeaders()
|
||||
responseFormatr := outputFormatMap[request.ResponseFormat]
|
||||
if responseFormatr == "" {
|
||||
|
||||
Reference in New Issue
Block a user