Skip to content

Resolve "Support code block syntax for code generation"

What does this MR do and why?

Support block comments for extracting instructions to support code generation

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Submit code with block comment generation instructions appropriate to the language you are testing to the code completions API api/v4/code_suggestions/completions
  2. Note that the model name that comes back is a generation model (i.e. claude-2 or code-bison)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #426107 (closed)

Edited by Allen Cook

Merge request reports