Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Zewed committed Jan 23, 2024
1 parent b5e2d5a commit 1af480f
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from "next/link";

import { Avatar } from "@/lib/components/ui/Avatar";
import { Testimonial } from "@/lib/types/Testimonial";
import { Testimonial } from "@/lib/types/testimonial";

import { socialMediaToIcon } from "../utils/socialMediaToIcon";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AiFillLinkedin } from "react-icons/ai";
import { RiTwitterXFill } from "react-icons/ri";

import { Testimonial } from "@/lib/types/Testimonial";
import { Testimonial } from "@/lib/types/testimonial";

export const socialMediaToIcon: Record<
Testimonial["socialMedia"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { UseFormSetValue } from "react-hook-form";
import { useTranslation } from "react-i18next";
import { LuLock, LuUnlock } from "react-icons/lu";

import { BrainConfig, BrainStatus } from "@/lib/types/BrainConfig";
import { BrainConfig, BrainStatus } from "@/lib/types/brainConfig";

import { BrainAccessRadio } from "./components/BrainAccessRadio";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTranslation } from "react-i18next";

import { BrainType } from "@/lib/types/BrainConfig";
import { BrainType } from "@/lib/types/brainConfig";

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const useGeneralInformation = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useFormContext } from "react-hook-form";
import { useBrainContext } from "@/lib/context/BrainProvider/hooks/useBrainContext";
import { Brain } from "@/lib/context/BrainProvider/types";
import { useUrlBrain } from "@/lib/hooks/useBrainIdFromUrl";
import { BrainConfig } from "@/lib/types/BrainConfig";
import { BrainConfig } from "@/lib/types/brainConfig";

import { useBrainFetcher } from "../../../hooks/useBrainFetcher";

Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/api/brain/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { UUID } from "crypto";

import { BrainRoleType } from "@/lib/components/BrainUsers/types";
import { BrainStatus, BrainType, Model } from "@/lib/types/BrainConfig";
import { BrainStatus, BrainType, Model } from "@/lib/types/brainConfig";

export type ApiBrainDefinitionSchemaPropertyType = "string" | "number";

Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/api/cms/utils/testimonials.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AxiosInstance } from "axios";

import { Testimonial } from "@/lib/types/Testimonial";
import { Testimonial } from "@/lib/types/testimoniall";

type CmsTestimonials = {
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FaArrowLeft } from "react-icons/fa";

import { ApiRequestDefinition } from "@/lib/components/ApiRequestDefinition";
import Button from "@/lib/components/ui/Button";
import { BrainType } from "@/lib/types/BrainConfig";
import { BrainType } from "@/lib/types/brainConfig";

import { CompositeBrainConnections } from "./components/CompositeBrainConnections/CompositeBrainConnections";
import { KnowledgeToFeedInput } from "./components/KnowledgeToFeedInput";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTranslation } from "react-i18next";

import { BrainStatus } from "@/lib/types/BrainConfig";
import { BrainStatus } from "@/lib/types/brainConfig";
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const useBrainStatusOptions = () => {
const { t } = useTranslation(["translation", "brain", "config"]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useFeatureIsOn } from "@growthbook/growthbook-react";
import { useTranslation } from "react-i18next";

import { BrainType } from "@/lib/types/BrainConfig";
import { BrainType } from "@/lib/types/brainConfig";

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const useKnowledgeSourceLabel = () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/config/defaultBrainConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CreateBrainInput } from "../api/brain/types";
import { Model } from "../types/BrainConfig";
import { Model } from "../types/brainConfig";

export const addBrainDefaultValues: CreateBrainInput = {
model: "gpt-3.5-turbo",
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/context/BrainProvider/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Document } from "@/lib/types/Document";

import { useBrainProvider } from "./hooks/useBrainProvider";

import { BrainType, Model } from "../../types/BrainConfig";
import { BrainType, Model } from "../../types/brainConfig";

export type BrainAccessStatus = "private" | "public";

Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/context/ChatProvider/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ChatMessage, Notification } from "@/app/chat/[chatId]/types";

import { Model } from "../../types/BrainConfig";
import { Model } from "../../types/brainConfig";

export type ChatConfig = {
model: Model;
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/helpers/defineMaxTokens.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Model, PaidModels } from "../types/BrainConfig";
import { Model, PaidModels } from "../types/brainConfig";

export const defineMaxTokens = (
model: Model | PaidModels | undefined
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/helpers/getAccessibleModels.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { freeModels, paidModels } from "@/lib/types/BrainConfig";
import { UserStats } from "@/lib/types/User";
import { freeModels, paidModels } from "@/lib/types/brainConfig";

type GetAccessibleModelsInput = {
openAiKey?: string | null;
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/helpers/getBrainIconFromBrainType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LuBot, LuBrain } from "react-icons/lu";
import { PiPaperclipFill } from "react-icons/pi";
import { TbWorld } from "react-icons/tb";

import { BrainType } from "@/lib/types/BrainConfig";
import { BrainType } from "@/lib/types/brainConfig";
type GetBrainIconFromBrainTypeOptions = {
iconSize?: number;
ApiBrainIcon?: IconType;
Expand Down

0 comments on commit 1af480f

Please sign in to comment.