-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Error when using Azure OpenAI model v1.0.0 #2333
Comments
Hello @JustTryAI! I'm here to help you with any bugs, questions, or contributions. Let's work together to solve the issue you're facing. The error "build_model not found in AzureChatOpenAIComponent" occurs because the Here is the relevant part of the def build(
self,
model: str,
azure_endpoint: str,
azure_deployment: str,
api_key: str,
api_version: str,
temperature: float = 0.7,
max_tokens: Optional[int] = 1000,
) -> BaseLanguageModel:
try:
llm = AzureChatOpenAI(
model=model,
azure_endpoint=azure_endpoint,
azure_deployment=azure_deployment,
api_version=api_version,
api_key=api_key,
temperature=temperature,
max_tokens=max_tokens,
)
except Exception as e:
raise ValueError("Could not connect to AzureOpenAI API.") from e
return llm Ensure that you are calling the |
@dosu. I don't believe this response is correct as the Azure OpenAI model uses the "model_response" function instead of the build_model function used by other models. |
You are correct. The Azure OpenAI model component uses the To resolve this issue, ensure that your configuration and setup are correct. Here are the steps to verify and correct your setup:
If the issue persists, it may be helpful to review the implementation of the For more details, you can refer to the |
Same issue. Brand new install and same steps fail. 2024-06-26 09:56:30 - ERROR - base - build_model not found in AzureChatOpenAIComponent base.py:627
Langflow v1.0.5 |
Tried Langflow for the first time for experimentation purpose and received the following error on building the AzureOpenAI Component. Verified all parameters are correctly configured. Langflow v1.0.5 |
I ran into the same issue.
` |
#2339 has the fix in it |
Describe the bug
Can't use the Basic Prompting (Hello, World) starter project with the Azure OpenAI model, I'm using the same settings that have worked with previous pre-release builds.
The error message I'm getting is:
Error Building Component
Error building Component Azure OpenAI: build_model not found in AzureChatOpenAIComponent
Browser and Version
Edge Version 126.0.2592.68 (Official build) (64-bit)
To Reproduce
Steps to reproduce the behavior:
Additional context
Everything worked fine in 1.0.0a60, I have reinstalled a60 again to check that the variables I'm using are correct, and everything is working fine.
Unable to test in v1.0.3 as nothing seems to be working with this build for me, I have clean installed 1.0.3
The text was updated successfully, but these errors were encountered: