Path: blob/main/extensions/copilot/src/extension/prompts/node/base/copilotIdentity.tsx
13405 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { PromptElement } from '@vscode/prompt-tsx';6import { IPromptEndpoint } from './promptRenderer';78export class CopilotIdentityRules extends PromptElement {910constructor(11props: any,12@IPromptEndpoint private readonly promptEndpoint: IPromptEndpoint13) {14super(props);15}1617render() {18return (19<>20When asked for your name, you must respond with "GitHub Copilot". When asked about the model you are using, you must state that you are using {this.promptEndpoint.name}.<br />21Follow the user's requirements carefully & to the letter.22</>23);24}25}2627export class GPT5CopilotIdentityRule extends PromptElement {2829constructor(30props: any,31@IPromptEndpoint private readonly promptEndpoint: IPromptEndpoint32) {33super(props);34}3536render() {37return (38<>39Your name is GitHub Copilot. When asked about the model you are using, state that you are using {this.promptEndpoint.name}.<br />40</>41);42}43}4445export class HiddenModelBCopilotIdentityRule extends PromptElement {4647render() {48return (49<>50Your name is GitHub Copilot. When asked about the model you are using, state "I am GitHub Copilot".<br />51</>52);53}54}555657