跳至主要内容 无障碍功能帮助 无障碍功能反馈
控制台徽标
控制台徽标

Vertex AI

信息中心
模型库
流水线

创建提示
Media Studio
实时流
提示库
提示管理
调优

Agent Garden
Agent Engine
RAG 引擎
Vertex AI Search
Vector Search

Colab Enterprise
Workbench

Feature Store
数据集
训练
实验
元数据
Ray on Vertex AI

模型注册表
端点
批量推理
监控
预配吞吐量 Pipelines 教程

Codey for Code Chat

Codey for Code Chat

Get code-related assistance through natural conversation. Good for questions about an API, syntax in a supported language, and more.
在 Vertex AI Studio 中打开
微调
Overview
Use cases
Documentation

Overview

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.

Use cases

Some common used cases for code chat are:

  • Get help about code: Get help with questions you have about code, such as questions about an API, syntax in a supported programming language, or which version of a library is required for code you're writing.
  • Debugging: Get help with debugging code that doesn't compile or that contains a bug.
  • Documentation: Get help understanding code so you can document it accurately.
  • Learn about code: Get help learning about code you're not familiar with.

Documentation

Get started

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.

Supported coding languages

The Codey APIs support the following programming languages:

  • Go
  • GoogleSQL
  • Java
  • JavaScript
  • Python
  • TypeScript

Supported code infrastructure interfaces

The Codey API support the following infrastructure as code interfaces:

  • Google Cloud CLI
  • Kubernetes Resource Model (KRM)
  • Terraform

Setup the Codey API for code chat

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.

Versions

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.

模型 ID

publishers/google/models/codechat-bison

版本名称

codechat-bison@002

标记

任务

生成

Your page may be loading slowly because you're building optimized sources. If you intended on using uncompiled sources, please click this link.

隐藏快捷键帮助程序

Google Cloud 控制台未能从 www.gstatic.com 加载 JavaScript 源代码。
可能的原因包括:

  • www.gstatic.com 或其 IP 地址被您的网络管理员屏蔽了
  • 由于您的账号或网络自动发送的请求过多,Google 暂时屏蔽了您的账号或网络
如需进一步的帮助,请与您的网络管理员联系。

隐藏 Vertex AI 导航菜单(仅限可视化更改)
Vertex AI
信息中心
模型库
创建提示
Media Studio
提示管理
Agent Garden
Agent Engine
RAG 引擎
Vertex AI Search
Vector Search
Colab Enterprise
Workbench
Feature Store
Ray on Vertex AI
模型注册表
批量推理
在类似聊天对话的提示设计界面中打开模型