Skip to content

Commit

Permalink
Rename ChatGPT to GPT-4 (#26272) (#26350)
Browse files Browse the repository at this point in the history
* Rename `ChatGPT` to `GPT4`

ChatGPT is a user friendly name, but is technically inaccurate.

* Apply suggestions from code review



* Lint fix

* Additional ChatGPT --> OpenAI GPT-4 fixes

---------

Co-authored-by: Reed Loden <reed@goteleport.com>
  • Loading branch information
jentfoo and reedloden committed May 16, 2023
1 parent a555a3a commit 5c9f290
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/ai/chat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func TestChat_Complete(t *testing.T) {
require.NoError(t, err)

expectedResp := &Message{Role: "assistant",
Content: "Hey, I'm Teleport - a powerful tool that can assist you in managing your Teleport cluster via ChatGPT.",
Content: "Hey, I'm Teleport - a powerful tool that can assist you in managing your Teleport cluster via OpenAI GPT-4.",
Idx: 0,
}
require.Equal(t, expectedResp, msg)
Expand Down
2 changes: 1 addition & 1 deletion lib/ai/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import "fmt"
const promptSummarizeTitle = `You will be given a message. Create a short summary of that message.
Respond only with summary, nothing else.`

const initialAIResponse = `Hey, I'm Teleport - a powerful tool that can assist you in managing your Teleport cluster via ChatGPT.`
const initialAIResponse = `Hey, I'm Teleport - a powerful tool that can assist you in managing your Teleport cluster via OpenAI GPT-4.`

const promptExtractInstruction = `If the input is a request to complete a task on a server, try to extract the following information:
- A Linux shell command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import React from 'react';

import type { SVGIconProps } from './common';

export function ChatGPTIcon({ size = 20, fill = 'white' }: SVGIconProps) {
export function OpenAIIcon({ size = 20, fill = 'white' }: SVGIconProps) {
return (
<svg
data-testid="svg"
Expand Down
2 changes: 1 addition & 1 deletion web/packages/design/src/SVGIcon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export { ApplicationsIcon } from './Applications';
export { AuditLogIcon } from './AuditLog';
export { AuthConnectorsIcon } from './AuthConnectors';
export { AWSIcon } from './AWS';
export { ChatGPTIcon } from './ChatGPT';
export { ChatIcon } from './Chat';
export { ChevronRightIcon } from './ChevronRight';
export { DatabasesIcon } from './Databases';
Expand All @@ -35,6 +34,7 @@ export { LabelIcon } from './Label';
export { LockIcon } from './Lock';
export { LogoutIcon } from './Logout';
export { ManageClustersIcon } from './ManageClusters';
export { OpenAIIcon } from './OpenAI';
export { PlusIcon } from './Plus';
export { RemoteCommandIcon } from './RemoteCommand';
export { RolesIcon } from './Roles';
Expand Down
3 changes: 2 additions & 1 deletion web/packages/teleport/src/Assist/Chat/ChatItem/ChatItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ export function ExampleChatItem() {
<Container teleport={true} isNew={false}>
<Content isFirstFromUser={true} isLastFromUser={true}>
Hey {ctx.storeUser.state.username}, I'm Teleport - a powerful tool that
can assist you in managing your Teleport cluster via ChatGPT. <br />
can assist you in managing your Teleport cluster via OpenAI GPT-4.
<br />
<br />
Start a new chat with me on the left to get started! Here's some of the
things I can do:
Expand Down
7 changes: 4 additions & 3 deletions web/packages/teleport/src/Navigation/NavigationSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import styled from 'styled-components';
import { ChevronDownIcon } from 'design/SVGIcon/ChevronDown';

import { useLocalStorage } from 'shared/hooks/useLocalStorage';
import { ChatGPTIcon } from 'design/SVGIcon/ChatGPT';
import { OpenAIIcon } from 'design/SVGIcon/OpenAI';

import { useHistory, useLocation } from 'react-router';

Expand Down Expand Up @@ -293,10 +293,11 @@ export function NavigationSwitcher(props: NavigationSwitcherProps) {
<TooltipTitle>
<TooltipTitleBackground>New!</TooltipTitleBackground>
</TooltipTitle>{' '}
Connect Teleport to ChatGPT and try out our new Assist integration
Connect Teleport to OpenAI GPT-4 and try out our new Assist
integration
<TooltipFooter>
<TooltipLogos>
<ChatGPTIcon size={30} />
<OpenAIIcon size={30} />
<TooltipLogosSpacer>+</TooltipLogosSpacer>
<TeleportIcon />
</TooltipLogos>
Expand Down

0 comments on commit 5c9f290

Please sign in to comment.