-
Notifications
You must be signed in to change notification settings - Fork 32
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
I'm using Azure OpenAI, but The OpenAI model ID is required.
always shown.
#81
Comments
Hi @doggy8088 did you install this from PyPi? there was a issue with #77 which was fixed in the latest build for PYPI. https://github.com/Azure/co-op-translator/releases/tag/v0.6.4 To fix this see #77 If using Azure Open AI ServicesSimply modify: [src/co_op_translator/config/llm_config/azure_openai.py] Ensure the following is present
For OpenAI servicesModify [src/co_op_translator/config/llm_config/openai.py] Ensure the following is present
|
Hi @doggy8088, Thanks for reporting this issue! It looks like AZURE_OPENAI_MODEL_NAME is not being recognized as the required model ID in Semantic Kernel. Before troubleshooting further, please check if you're using Co-op Translator v0.6.4. As @leestott mentioned earlier, versions below 0.6.4 may have issues with LLM-related configurations. If you're on an older version, try updating it first. If you're already on v0.6.4, could you try the following steps and let me know what happens? Check if the environment variables are loaded correctly.Run the following command to confirm that AZURE_OPENAI_MODEL_NAME is set:
If the correct value appears, try running the translation command again, as this process also ensures the environment variables are loaded. Ensure you're using the latest version of Semantic Kernel.Run Double-check the model name in Azure AI Foundry.Make sure the model deployment name in your Azure AI Foundry matches exactly with what you've set in your .env file. I also recreated my environment and tested it again, and everything is working fine on my end. Let me know what you find, and we’ll troubleshoot further if needed! |
@doggy8088 Did the troubleshooting steps we provided help? Ensure you log into Azure using the |
Describe the bug
I already configured
.env
file. Only the following settings are configured.Everytime I run the
translate
command the following error shown.Steps to reproduce
Set up the Azure environment.
Run
co-op-translator
with specific settings.translate -l "tw" -d
See the error.
Expected behavior
I expected the
translate
command use Azure OpenAI Service settings.Logs and additional context
Are you willing to submit a pull request to resolve the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: