Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whisper for Azure OpenAi #339

Open
jullimullins opened this issue Nov 29, 2024 · 4 comments
Open

Whisper for Azure OpenAi #339

jullimullins opened this issue Nov 29, 2024 · 4 comments

Comments

@jullimullins
Copy link

jullimullins commented Nov 29, 2024

Possible to make TextGenerator whisper configuration support Azure OpenAI?

Error logs below:
plugin:obsidian-text…nerator-plugin:1813
POST https://XXXXXXXXXXXXXXXXXXX.openai.azure.com/openai/deployments/whisper/audio/transcriptions 404 (Not Found)
plugin:obsidian-text…nerator-plugin:2116
Error: Error. {"error":{"code":"404","message":"Resource not found"}}
at W1.generateTranscript (plugin:obsidian-text…r-plugin:1813:17954)
at async W1.convert (plugin:obsidian-text…r-plugin:1813:16972)
at async ci.convert (plugin:obsidian-text…tor-plugin:1819:887)
at async e (plugin:obsidian-text…tor-plugin:1825:175)
at async Object.extract (plugin:obsidian-text…or-plugin:1829:2828)
at async eval (eval at createFunctionContext (plugin:obsidian-textgenerator-plugin:1:1), :10:10)
at async m (plugin:obsidian-text…or-plugin:2085:9649)
handelError @ plugin:obsidian-text…nerator-plugin:2116
generateTranscript @ plugin:obsidian-text…nerator-plugin:1813
await in generateTranscript (async)
convert @ plugin:obsidian-text…nerator-plugin:1813
await in convert (async)
convert @ plugin:obsidian-text…nerator-plugin:1819
e @ plugin:obsidian-text…nerator-plugin:1825
extract @ plugin:obsidian-text…nerator-plugin:1829
t @ plugin:obsidian-textgenerator-plugin:81
eval @ VM627:10
eval @ VM627:11
eval @ VM627:11
eval @ plugin:obsidian-text…nerator-plugin:1749
c @ plugin:obsidian-textgenerator-plugin:83
c @ plugin:obsidian-textgenerator-plugin:87
eval @ plugin:obsidian-text…nerator-plugin:1749
eval @ plugin:obsidian-text…nerator-plugin:1749
m @ plugin:obsidian-text…nerator-plugin:2085
await in m (async)
B$I @ plugin:obsidian-textgenerator-plugin:449
S$I @ plugin:obsidian-textgenerator-plugin:449
T$I @ plugin:obsidian-textgenerator-plugin:449
GKe @ plugin:obsidian-textgenerator-plugin:449
JDe @ plugin:obsidian-textgenerator-plugin:449
eval @ plugin:obsidian-textgenerator-plugin:449
Nme @ plugin:obsidian-textgenerator-plugin:452
aDe @ plugin:obsidian-textgenerator-plugin:449
Jue @ plugin:obsidian-textgenerator-plugin:449
Kbe @ plugin:obsidian-textgenerator-plugin:449
iet @ plugin:obsidian-textgenerator-plugin:449

@haouarihk
Copy link
Collaborator

can you try with version 0.7.44-beta.
and set the api-version to 2024-02-01 under whisper settings

@jullimullins
Copy link
Author

jullimullins commented Dec 7, 2024

I still geting 404 Resource not found but I need to check that the azure end is working properly. I will try the beta again after I'm 100% that the azure whisper is configured properly.

@jullimullins
Copy link
Author

jullimullins commented Dec 8, 2024

I have tried different BasePaths and model combinations and always get 404 error

Azure end works with following python code

AZURE_OPENAI_ENDPOINT = 'https://xxxxxxxx.openai.azure.com'
AZURE_OPENAI_KEY = 'xxxxxxxxxx'
MODEL_NAME = "whisper'
HEADERS = { "api-key" : AZURE_OPENAI_KEY }

requests.post(f'{AZURE_OPENAI_ENDPOINT}/openai/deployments/{MODEL_NAME}/audio/transcriptions?api-version=2024-02-01', headers=HEADERS, files={'file': audio})

@jullimullins
Copy link
Author

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants