-
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
v1.0 AttributeError: build_model not found in AzureChatOpenAIComponent #2331
Comments
Hello, @714Lemons! I'm here to assist you with any bugs, questions, or contributions while we wait for a human maintainer. To resolve the Here is an example of how you can use the # Assuming you have an instance of AzureChatOpenAIComponent
azure_component = AzureChatOpenAIComponent()
# Set the required parameters
azure_component.model = "gpt-4"
azure_component.azure_endpoint = "https://example-resource.azure.openai.com/"
azure_component.azure_deployment = "your-deployment-name"
azure_component.api_version = "2023-09-01-preview"
azure_component.api_key = "your-api-key"
azure_component.temperature = 0.7
azure_component.max_tokens = 1000
azure_component.stream = False
# Call the model_response method to get the AzureChatOpenAI instance
result = azure_component.model_response()
print(result) Make sure to replace the placeholder values with your actual configuration. The |
Describe the bug
The Azure OpenAI component does not work and returns AttributeError. build_model not found.
I tried every model from gpt-35 up tp gpt-4o.
Browser and Version
To Reproduce
Steps to reproduce the behavior:
Screenshots
![Bildschirmfoto 2024-06-25 um 09 52 45](https://private-user-images.githubusercontent.com/32739574/342633021-1b597a25-5432-4a36-aeb5-50d2984a54d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzE0MzQsIm5iZiI6MTcyMDczMTEzNCwicGF0aCI6Ii8zMjczOTU3NC8zNDI2MzMwMjEtMWI1OTdhMjUtNTQzMi00YTM2LWFlYjUtNTBkMjk4NGE1NGQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIwNTIxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyM2FlMmRkYTM2ODBlMDQ4MWQ2NzIwMDYwN2M5YjZkMDQ4ZmYyNDJiY2M2MTI4YTMxNGQ0NmU1NjU2MTM0NGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9IPeUo_rSXyy9vNDz7mInHR6E9iGLAlFsQBFCB7bC2U)
The text was updated successfully, but these errors were encountered: