add chat model form styling
This commit is contained in:
parent
63c5191fd8
commit
62065834d3
9 changed files with 16 additions and 18 deletions
|
|
@ -6,6 +6,7 @@ import generateRepoMap from "../../util/generateRepoMap";
|
|||
const SUPPORTED_MODEL_TITLE_FAMILIES = [
|
||||
"claude-3",
|
||||
"llama3.1",
|
||||
"llama3.2",
|
||||
"gemini-1.5",
|
||||
"gpt-4",
|
||||
];
|
||||
|
|
|
|||
|
|
@ -75,4 +75,4 @@ If you need to force a refresh of the index, reload the VS Code window with `cmd
|
|||
|
||||
## Repository map
|
||||
|
||||
Models in the Claude 3, Llama 3.1, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../context-providers.md#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
|
||||
Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../context-providers.md#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Cerebras Inference
|
||||
|
||||
Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B and Llama3.1 70B models.
|
||||
Cerebras Inference uses specialized silicon to provides fast inference.
|
||||
|
||||
1. Create an account in the portal [here](https://cloud.cerebras.ai/).
|
||||
2. Create and copy the API key for use in Continue.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ description: How to use Llama 3.1 with Continue
|
|||
keywords: [llama, meta, togetherai, ollama, replicate]
|
||||
---
|
||||
|
||||
Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models.
|
||||
Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models. Llama 3.2 models are also supported but not recommended for chat, because they are specifically designed to be small or multi-modal.
|
||||
|
||||
If you haven't already installed Continue, you can do that [here for VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [here for JetBrains](https://plugins.jetbrains.com/plugin/22707-continue). For more general information on customizing Continue, read [our customization docs](../overview.md).
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@ export async function showTutorial() {
|
|||
}
|
||||
|
||||
export class VsCodeWebviewProtocol
|
||||
implements IMessenger<FromWebviewProtocol, ToWebviewProtocol>
|
||||
{
|
||||
implements IMessenger<FromWebviewProtocol, ToWebviewProtocol> {
|
||||
listeners = new Map<
|
||||
keyof FromWebviewProtocol,
|
||||
((message: Message) => any)[]
|
||||
|
|
@ -125,7 +124,7 @@ export class VsCodeWebviewProtocol
|
|||
message = message.split("\n").filter((l: string) => l !== "")[1];
|
||||
try {
|
||||
message = JSON.parse(message).message;
|
||||
} catch {}
|
||||
} catch { }
|
||||
if (message.includes("exceeded")) {
|
||||
message +=
|
||||
" To keep using Continue, you can set up a local model or use your own API key.";
|
||||
|
|
@ -179,7 +178,7 @@ export class VsCodeWebviewProtocol
|
|||
});
|
||||
}
|
||||
|
||||
constructor(private readonly reloadConfig: () => void) {}
|
||||
constructor(private readonly reloadConfig: () => void) { }
|
||||
invoke<T extends keyof FromWebviewProtocol>(
|
||||
messageType: T,
|
||||
data: FromWebviewProtocol[T][0],
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 7.9 KiB |
BIN
gui/public/logos/ibmold.png
Normal file
BIN
gui/public/logos/ibmold.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
|
|
@ -79,13 +79,13 @@ export const StyledListboxOptions = styled(Listbox.Options)`
|
|||
}
|
||||
`;
|
||||
|
||||
export const StyledListboxOption = styled(Listbox.Option)<{
|
||||
export const StyledListboxOption = styled(Listbox.Option) <{
|
||||
selected: boolean;
|
||||
}>`
|
||||
background-color: ${({ selected }) =>
|
||||
selected ? vscListActiveBackground : vscInputBackground};
|
||||
cursor: pointer;
|
||||
padding: 6px 8px;
|
||||
padding: 6px 8px 6px 12px;
|
||||
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
|
|
@ -121,11 +121,10 @@ function ModelSelectionListbox({
|
|||
{window.vscMediaUrl && selectedProvider.icon && (
|
||||
<img
|
||||
src={`${window.vscMediaUrl}/logos/${selectedProvider.icon}`}
|
||||
height="24px"
|
||||
style={{ marginRight: "10px" }}
|
||||
className="object-contain w-4 h-4 object-center mr-3"
|
||||
/>
|
||||
)}
|
||||
<span className="text-md">{selectedProvider.title}</span>
|
||||
<span className="text-xs">{selectedProvider.title}</span>
|
||||
</span>
|
||||
<span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
|
||||
<ChevronUpDownIcon
|
||||
|
|
@ -145,24 +144,23 @@ function ModelSelectionListbox({
|
|||
<StyledListboxOption
|
||||
selected={selectedProvider.title === option.title}
|
||||
key={index}
|
||||
className="relative cursor-default select-none py-2 pl-10 pr-4 text-gray-400"
|
||||
className="relative cursor-default select-none py-2 pr-4 text-gray-400"
|
||||
value={option}
|
||||
>
|
||||
{({ selected }) => (
|
||||
<>
|
||||
{option.title === "Autodetect" ? (
|
||||
<CubeIcon className="mr-2.5 h-6 w-6 text-gray-400" />
|
||||
<CubeIcon className="mr-2 w-4 h-4 text-gray-400" />
|
||||
) : (
|
||||
window.vscMediaUrl &&
|
||||
option.icon && (
|
||||
<img
|
||||
src={`${window.vscMediaUrl}/logos/${option.icon}`}
|
||||
height="24px"
|
||||
style={{ marginRight: "10px" }}
|
||||
className="object-contain w-4 h-4 object-center mr-1"
|
||||
/>
|
||||
)
|
||||
)}
|
||||
<span className="text-md">{option.title}</span>
|
||||
<span className="text-xs">{option.title}</span>
|
||||
|
||||
{selected && (
|
||||
<span className="inset-y-0 ml-auto flex items-center pl-3">
|
||||
|
|
|
|||
|
|
@ -572,7 +572,7 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
|
|||
title: "SambaNova Cloud",
|
||||
provider: "sambanova",
|
||||
refPage: "sambanova",
|
||||
description: "Use SambaNova Cloud for Llama3.1 fast inference performance",
|
||||
description: "Use SambaNova Cloud for fast inference performance",
|
||||
icon: "sambanova.png",
|
||||
longDescription: `The SambaNova Cloud is a cloud platform for running large AI models with the world record Llama 3.1 70B/405B performance. You can sign up [here](https://cloud.sambanova.ai/)`,
|
||||
tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue