Codey for Code Completion
Generates code based on code prompts. Good for code suggestions and minimizing bugs in code.code-gecko is the name of the model that supports code completion. It's a foundation model that generates code based on code being written. code-gecko can complete code that was recently typed by a user. code-gecko is supported by the code generation Codey API. The Codey APIs are in the PaLM API family.
Some common used cases for code generation are:
You can use Vertex AI Studio to experiment with the code-gecko model in the Google Cloud console. The code-gecko model also supports Python.
The Codey APIs support the following programming languages:
The Codey API support the following infrastructure as code interfaces:
To use the Codey API for code completion in the Google Cloud console, open it in Vertex AI Studio. To use the code completion programmatically, create a curl command to submit a prompt to the code-gecko model.
The following is an example of a curl command that specifies the code-gecko model and includes code to complete in the prefix
.
Resource ID | Release date | Release stage | Description |
---|---|---|---|
code-gecko@002 | 2023-12-06 | General Availability | |
code-gecko@001 | 2023-06-29 | General Availability | A LLM API that suggests code to complete code as it's typed. |
Google Cloud Console has failed to load JavaScript sources from www.gstatic.com.
Possible reasons are: