feat: add OpenAI model support

Adds support for OpenAI models, allowing users to leverage various OpenAI models directly from the application. This includes custom OpenAI models and OpenAI-specific configurations for seamless integration.
This commit is contained in:
n4ze3m
2024-09-29 19:57:26 +05:30
parent 2a2610afb8
commit c8620637f8
9 changed files with 97 additions and 31 deletions

View File

@@ -1,9 +1,5 @@
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"
import { useMutation, } from "@tanstack/react-query"
import {
Skeleton,
Table,
Tag,
Tooltip,
notification,
Modal,
Input,
@@ -23,7 +19,7 @@ dayjs.extend(relativeTime)
export const ModelsBody = () => {
const [open, setOpen] = useState(false)
const [segmented, setSegmented] = useState<string>("ollama")
const { t } = useTranslation(["settings", "common", "openai"])
const form = useForm({