-
Notifications
You must be signed in to change notification settings - Fork 88
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
Clarify Azure properties #248
Comments
I don't see |
base url is computed from resource name & deployment id https://${quarkus.langchain4j.azure-openai.resource-name}.openai.azure.com/openai/deployments/${quarkus.langchain4j.azure-openai.deployment-id} |
we could certainly rename I also agree that deployment name would be better and more consistent. |
Maybe the correct logic should be this... If If |
I'll defer to you guys since you know a lot more about Azure than I do |
After some investigation it seems that maybe the nomenclature in Langchain4j is a little misleading.
Even in the Microsoft docs it refers to the Azure OpenAI deployment as I have no issues with being more flexible, so this is what I propose:
|
I like that plan |
I guess I'll take it upon myself to implement this :D |
💪🏼 |
Maybe this afternoon. |
I can wait until next week :) |
The beauty of being -7 hours from you :) |
So...re-naming something is most definitely a breaking change. Are we ok making a breaking change like that? Or should we deprecate the existing one and introduce a new one? |
Well, it's up to all of you, but looking at the rapid pace where everything is evolving and that all the libraries are in 0.x.something... I would just break things. |
Yeah, it's fine to break |
That's what I thought as well, but just wanted to confirm. |
Hi :) Just my few cents. I've started playing with this extension a few days ago, so this is the feedback from the first-time extension user :D When I was integrating it in my prototype I had some serious thoughts when searching for
They (Microsoft) are very inconclusive in this regard. They sometimes use the "name" phrase and sometimes they use "id". But I believe that renaming the configuration property from |
Thanks for the feedback @sarxos. @radcortez does |
Yes @sarxos Azure can be confusing. But I agree, |
Thanks @agoncal. So if we can't get an automatic alias, we probably want to straight up rename the property @edeandrea |
I can do that rename as well as endpoint as part of this pr. |
🙏 |
Not directly, we are considering one in: smallrye/smallrye-config#1077 It is possible to create a relocate / fallback for the property alone (or other properties that require it): |
Thanks @radcortez |
When invoking Azure OpenAI with pure LangChain4j, this is the code you need:
apiKey
,endpoint
anddeploymentName
are mandatory. If you look at the Azure Console, the Deployment Name is random name you can choose and then you deploy a model (gpt-35-turbo
)At the moment, the extension had four mandatory properties instead of three:
Could we rename
deployment-id
withdeployment-name
so that it fits better with the LangChain4j API (deploymentName
) and the Azure naming convention ?And what is
resource-name
(I thought it would be the model name, but it does not work) and why it is mandatory ?cc @edeandrea @geoand
The text was updated successfully, but these errors were encountered: