Codey for Code Chat
Get code-related assistance through natural conversation. Good for questions about an API, syntax in a supported language, and more.codechat-bison is the name of the model that supports code chat. It's a foundation model that supports multi-turn conversations that are specialized for code. The model allows developers to chat with a chatbot for help with code-related questions. The code chat Codey API is used to interface with the codechat-bison model. The Codey APIs are in the PaLM API family.
The Codey API for code chat is ideal for code tasks that are completed with back-and-forth interactions so you can engage in a continuous conversation. For code tasks that require a single interaction, use the Codey API for code completion or the Codey API for code generation.
Some common used cases for code chat are:
You can use Vertex AI Studio to experiment with the codechat-bison model in the Google Cloud console. The codechat-bison 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 chat in the Google Cloud console, open it in Vertex AI Studio. To use the code chat model programmatically, create a curl command to submit a prompt to the codechat-bison model.
The following is an example of a curl command for a code chat conversation in which the user requests a function to return the minimum of two numbers.
Resource ID | Release date | Release stage | Description |
---|---|---|---|
codechat-bison@002 | 2023-12-04 | General Availability | Updated version with enhanced quality |
codechat-bison-32k@002 | 2023-12-04 | General Availability | Updated version with enhanced quality |
codechat-bison | 2023-08-29 | General Availability | |
codechat-bison-32k | 2024-04-01 | General Availability | |
codechat-bison@001 | 2023-06-29 | General Availability | An LLM API that supports multi-turn conversations that are specialized for code. |
Google Cloud Console has failed to load JavaScript sources from www.gstatic.com.
Possible reasons are: