Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide LLM dropdown for enterprise users #2393

Merged
merged 2 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions lib/ui/src/chat/Transcript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,18 @@ export const Transcript: React.FunctionComponent<
return (
<div ref={transcriptContainerRef} className={classNames(className, styles.container)}>
<div ref={scrollAnchoredContainerRef} className={classNames(styles.scrollAnchoredContainer)}>
{!!chatModels?.length && ChatModelDropdownMenu && onCurrentChatModelChange && userInfo && (
<ChatModelDropdownMenu
models={chatModels}
disabled={transcript.length > 1}
onCurrentChatModelChange={onCurrentChatModelChange}
userInfo={userInfo}
/>
)}
{!!chatModels?.length &&
ChatModelDropdownMenu &&
onCurrentChatModelChange &&
userInfo &&
userInfo.isDotComUser && (
<ChatModelDropdownMenu
models={chatModels}
disabled={transcript.length > 1}
onCurrentChatModelChange={onCurrentChatModelChange}
userInfo={userInfo}
/>
)}
{earlierMessages.map(messageToTranscriptItem(0))}
<div ref={lastHumanMessageTopRef} />
{lastInteractionMessages.map(messageToTranscriptItem(earlierMessages.length))}
Expand Down
2 changes: 2 additions & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a

### Changed

- Hide the LLM dropdown in the new Chat UX for enterprise instances where there is no choice to switch models. [pulls/2393](https://github.com/sourcegraph/cody/pull/2393)

## [1.0.0]

### Added
Expand Down
Loading