Merge pull request #4518 from continuedev/dallin/autodetect-label

Better autodetect label
This commit is contained in:
Nate Sesti 2025-03-08 08:34:31 -08:00 • committed by GitHub
commit 2e76ba7608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 6 deletions

View file

@ -272,7 +272,7 @@ async function intermediateToFinalConfig(
{
...desc,
model: modelName,
title: `${llm.title} - ${modelName}`,
title: modelName,
},
ide.readFile.bind(ide),
uniqueId,

View file

@ -127,7 +127,7 @@ async function autodetectModels(
{
...model,
model: modelName,
name: `${llm.title} - ${modelName}`,
name: modelName,
},
uniqueId,
ideSettings,

6
core/util/text.ts Normal file
View file

@ -0,0 +1,6 @@
export const capitalizeFirstLetter = (val: string) => {
if (val.length === 0) {
return "";
}
return val[0].toUpperCase() + val.slice(1);
};

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "1.1.3",
"version": "1.1.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "1.1.3",
"version": "1.1.4",
"license": "Apache-2.0",
"dependencies": {
"@continuedev/fetch": "^1.0.3",

View file

@ -1,11 +1,10 @@
import { Transition } from "@headlessui/react";
import { Listbox, Transition } from "@headlessui/react";
import {
CheckIcon,
ChevronUpDownIcon,
CubeIcon,
} from "@heroicons/react/24/outline";
import { Fragment } from "react";
import { Listbox } from "@headlessui/react";
import styled from "styled-components";
import {
defaultBorderRadius,