Hi, I am trying to use the code-bison model to help me document some code using the Codey API. My project seems to be setup correctly and I have admin privileges on all the resources. I get the project is not allowed to use the model error above. Any help to resolve the same is appreciated.
Hi @vkbalasub,
Welcome to Google Cloud Community!
It appears that you are encountering a FailedPrecondition: 400 error when trying to use the Code-Bison model with the Codey API. This error usually indicates a configuration problem with your project’s settings or permissions.
Here are some potential ways to address your issue:
- Verify model access permissions: Ensure that your project has the required IAM role permissions to use the model.
- Check model availability: Make sure the Code-bison model is available and correctly configured in your project. From time to time, models may be unavailable, deleted, or moved.
- Verify API settings: Make sure that the API endpoint you are using matches your project and model. Using an incorrect endpoint can lead to access errors.
If you continue to run into issues, consider reaching out to Google Cloud Support to further check underlying issues. When you contact them, be sure to provide as much detail as possible and include screenshots. This will help them understand your problem better and get it sorted out more quickly.
I hope the above information is helpful.