Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to configure azure open-ai in apex 24.1?

Andi77Aug 9 2024 — edited Aug 9 2024

Hi,

did anyone successfully added a hosted azure open-ai instance to apex designer?

I guess it's not working because apex cannot deal with the url you need to setup.

I created my own azure open-ai service on microsoft azure. I can access this via a REST Client directly in the browser or directly with python. But - as i'm trying to access it from oracle apex - apex screws up the url.

Maybe i configured it wrong - but the documentation and error output doesn't help me.

e.g. the url for azure open-ai is: (check at azure documentation: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#completions)

https://{endpoint}/openai/deployments/{deployment-id}/completions?api-version=2024-06-01

e.g.

https://[MyEndpoint].openai.azure.com/openai/deployments/[MyID]/completions?api-version=2024-02-15-preview

If i try to call the apex assistant in the PLSql Editor i'm getting this error message:

The HTTP request to Generative AI Service at https://[MyEndpoint].openai.azure.com/openai/deployments/[MyID]/completions/chat/completions?api-version=2024-02-15-preview failed with HTTP-404: 404: Resource not found

which is wired, because if i call it from Rest Client:

{ "choices": [ { "content_filter_results": { "hate": { "filtered": false, "severity": "safe" }, "self_harm": { "filtered": false, "severity": "safe" }, "sexual": { "filtered": false, "severity": "safe" }, "violence": { "filtered": false, "severity": "safe" } }, "finish_reason": "stop", "index": 0, "logprobs": null, "message": { "content": "Of course! How can I assist you today?", "role": "assistant" } } ],....

Did anyone get it working and if - how?

Kind regards,

Andreas

This post has been answered by Ralf Mueller-Oracle on Aug 20 2024
Jump to Answer
Comments
Post Details
Added on Aug 9 2024
15 comments
3,750 views