Shuu12121/CodeModernBERT-Crow-v3-len1024
Fill-Mask • 0.1B • Updated • 51
repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/jest.setup.ts | jest.setup.ts | // Learn more: https://github.com/testing-library/jest-dom
import "@testing-library/jest-dom";
import { jest } from "@jest/globals";
global.fetch = jest.fn(() =>
Promise.resolve({
ok: true,
status: 200,
json: () => Promise.resolve([]),
headers: new Headers(),
redirected: false,
statusText: "O... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/jest.config.ts | jest.config.ts | import type { Config } from "jest";
import nextJest from "next/jest.js";
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: "./",
});
// Add any custom config to be passed to Jest
const config: Config = {
coverageProvid... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/typing.ts | app/typing.ts | export type Updater<T> = (updater: (value: T) => void) => void;
export const ROLES = ["system", "user", "assistant"] as const;
export type MessageRole = (typeof ROLES)[number];
export interface RequestMessage {
role: MessageRole;
content: string;
}
export type DalleSize = "1024x1024" | "1792x1024" | "1024x1792";... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/constant.ts | app/constant.ts | export const OWNER = "ChatGPTNextWeb";
export const REPO = "ChatGPT-Next-Web";
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
export const PLUGINS_REPO_URL = `https://github.com/${OWNER}/NextChat-Awesome-Plugins`;
export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`;
export const UPDATE... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/layout.tsx | app/layout.tsx | /* eslint-disable @next/next/no-page-custom-font */
import "./styles/globals.scss";
import "./styles/markdown.scss";
import "./styles/highlight.scss";
import { getClientConfig } from "./config/client";
import type { Metadata, Viewport } from "next";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { ... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/utils.ts | app/utils.ts | import { useEffect, useState } from "react";
import { showToast } from "./components/ui-lib";
import Locale from "./locales";
import { RequestMessage } from "./client/api";
import {
REQUEST_TIMEOUT_MS,
REQUEST_TIMEOUT_MS_FOR_THINKING,
ServiceProvider,
} from "./constant";
// import { fetch as tauriFetch, Response... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/global.d.ts | app/global.d.ts | declare module "*.jpg";
declare module "*.png";
declare module "*.woff2";
declare module "*.woff";
declare module "*.ttf";
declare module "*.scss" {
const content: Record<string, string>;
export default content;
}
declare module "*.svg";
declare interface Window {
__TAURI__?: {
writeText(text: string): Prom... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/command.ts | app/command.ts | import { useEffect } from "react";
import { useSearchParams } from "react-router-dom";
import Locale from "./locales";
type Command = (param: string) => void;
interface Commands {
fill?: Command;
submit?: Command;
mask?: Command;
code?: Command;
settings?: Command;
}
export function useCommand(commands: Com... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/page.tsx | app/page.tsx | import { Analytics } from "@vercel/analytics/react";
import { Home } from "./components/home";
import { getServerSideConfig } from "./config/server";
const serverConfig = getServerSideConfig();
export default async function App() {
return (
<>
<Home />
{serverConfig?.isVercel && (
<>
... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/polyfill.ts | app/polyfill.ts | declare global {
interface Array<T> {
at(index: number): T | undefined;
}
}
if (!Array.prototype.at) {
Array.prototype.at = function (index: number) {
// Get the length of the array
const length = this.length;
// Convert negative index to a positive index
if (index < 0) {
index = lengt... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/config.ts | app/store/config.ts | import { LLMModel } from "../client/api";
import { DalleQuality, DalleStyle, ModelSize } from "../typing";
import { getClientConfig } from "../config/client";
import {
DEFAULT_INPUT_TEMPLATE,
DEFAULT_MODELS,
DEFAULT_SIDEBAR_WIDTH,
DEFAULT_TTS_ENGINE,
DEFAULT_TTS_ENGINES,
DEFAULT_TTS_MODEL,
DEFAULT_TTS_MOD... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/chat.ts | app/store/chat.ts | import {
getMessageTextContent,
isDalle3,
safeLocalStorage,
trimTopic,
} from "../utils";
import { indexedDBStorage } from "@/app/utils/indexedDB-storage";
import { nanoid } from "nanoid";
import type {
ClientApi,
MultimodalContent,
RequestMessage,
} from "../client/api";
import { getClientApi } from "..... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/mask.ts | app/store/mask.ts | import { BUILTIN_MASKS } from "../masks";
import { getLang, Lang } from "../locales";
import { DEFAULT_TOPIC, ChatMessage } from "./chat";
import { ModelConfig, useAppConfig } from "./config";
import { StoreKey } from "../constant";
import { nanoid } from "nanoid";
import { createPersistStore } from "../utils/store";
... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/sync.ts | app/store/sync.ts | import { getClientConfig } from "../config/client";
import { ApiPath, STORAGE_KEY, StoreKey } from "../constant";
import { createPersistStore } from "../utils/store";
import {
AppState,
getLocalAppState,
GetStoreState,
mergeAppState,
setLocalAppState,
} from "../utils/sync";
import { downloadAs, readFromFile ... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/sd.ts | app/store/sd.ts | import {
Stability,
StoreKey,
ACCESS_CODE_PREFIX,
ApiPath,
} from "@/app/constant";
import { getBearerToken } from "@/app/client/api";
import { createPersistStore } from "@/app/utils/store";
import { nanoid } from "nanoid";
import { uploadImage, base64Image2Blob } from "@/app/utils/chat";
import { models, getMo... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/update.ts | app/store/update.ts | import {
FETCH_COMMIT_URL,
FETCH_TAG_URL,
ModelProvider,
StoreKey,
} from "../constant";
import { getClientConfig } from "../config/client";
import { createPersistStore } from "../utils/store";
import { clientUpdate } from "../utils";
import ChatGptIcon from "../icons/chatgpt.png";
import Locale from "../locale... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/plugin.ts | app/store/plugin.ts | import OpenAPIClientAxios from "openapi-client-axios";
import { StoreKey } from "../constant";
import { nanoid } from "nanoid";
import { createPersistStore } from "../utils/store";
import { getClientConfig } from "../config/client";
import yaml from "js-yaml";
import { adapter, getOperationId } from "../utils";
import ... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/index.ts | app/store/index.ts | export * from "./chat";
export * from "./update";
export * from "./access";
export * from "./config";
export * from "./plugin";
| typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/prompt.ts | app/store/prompt.ts | import Fuse from "fuse.js";
import { nanoid } from "nanoid";
import { StoreKey } from "../constant";
import { getLang } from "../locales";
import { createPersistStore } from "../utils/store";
export interface Prompt {
id: string;
isUser?: boolean;
title: string;
content: string;
createdAt: number;
}
export ... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/store/access.ts | app/store/access.ts | import {
GoogleSafetySettingsThreshold,
ServiceProvider,
StoreKey,
ApiPath,
OPENAI_BASE_URL,
ANTHROPIC_BASE_URL,
GEMINI_BASE_URL,
BAIDU_BASE_URL,
BYTEDANCE_BASE_URL,
ALIBABA_BASE_URL,
TENCENT_BASE_URL,
MOONSHOT_BASE_URL,
STABILITY_BASE_URL,
IFLYTEK_BASE_URL,
DEEPSEEK_BASE_URL,
XAI_BASE_U... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/components/exporter.tsx | app/components/exporter.tsx | /* eslint-disable @next/next/no-img-element */
import { ChatMessage, useAppConfig, useChatStore } from "../store";
import Locale from "../locales";
import styles from "./exporter.module.scss";
import {
List,
ListItem,
Modal,
Select,
showImageModal,
showModal,
showToast,
} from "./ui-lib";
import { IconBut... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/components/auth.tsx | app/components/auth.tsx | import styles from "./auth.module.scss";
import { IconButton } from "./button";
import { useState, useEffect } from "react";
import { useNavigate } from "react-router-dom";
import { Path, SAAS_CHAT_URL } from "../constant";
import { useAccessStore } from "../store";
import Locale from "../locales";
import Delete from "... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/components/plugin.tsx | app/components/plugin.tsx | import { useDebouncedCallback } from "use-debounce";
import OpenAPIClientAxios from "openapi-client-axios";
import yaml from "js-yaml";
import { PLUGINS_REPO_URL } from "../constant";
import { IconButton } from "./button";
import { ErrorBoundary } from "./error";
import styles from "./mask.module.scss";
import pluginS... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |
ChatGPTNextWeb/NextChat | https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/components/ui-lib.tsx | app/components/ui-lib.tsx | /* eslint-disable @next/next/no-img-element */
import styles from "./ui-lib.module.scss";
import LoadingIcon from "../icons/three-dots.svg";
import CloseIcon from "../icons/close.svg";
import EyeIcon from "../icons/eye.svg";
import EyeOffIcon from "../icons/eye-off.svg";
import DownIcon from "../icons/down.svg";
import... | typescript | MIT | c3b8c1587c04fff05f7b42276a43016e87771527 | 2026-01-04T15:25:31.858944Z | false |