Skip to content

Commit fe4413c

Browse files
authored
Merge branch 'main' into docs/banner
2 parents 0ae0ab8 + 5d86bd2 commit fe4413c

File tree

19 files changed

+4959
-4814
lines changed

19 files changed

+4959
-4814
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = {
104104
],
105105
parserOptions: {
106106
project: ['tsconfig.json'],
107-
tsconfigRootDir: './'
107+
tsconfigRootDir: __dirname
108108
},
109109
rules: {
110110
'@typescript-eslint/no-unnecessary-type-assertion': 'error',

.github/workflows/nextjs_bundle_analysis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ jobs:
5656
# # change this if you prefer a more strict cache
5757
# key: ${{ runner.os }}-build-${{ env.cache-name }}
5858

59-
- name: Install ESLint
60-
run: pnpm add -D eslint @next/eslint-plugin-next
61-
59+
# ESLint is already installed via pnpm install from package.json
6260
- name: Run ESLint
6361
run: pnpm eslint .
6462

components/Newsletter/SubscribeForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const SubscribeForm = () => {
3636
} else {
3737
toast.error('Subscription failed')
3838
}
39-
} catch (error) {
39+
} catch {
4040
toast.error('Subscription failed')
4141
} finally {
4242
setIsLoading(false)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- Added `default` field to `customParams.paramDefinitions` for setting default parameter values
2+
- Allows specifying default values for parameters that are automatically applied when making API requests
3+
- Default values are only applied when the parameter is `undefined`
4+
- Follows priority order: `paramDefinitions.default` < `addParams` < `modelOptions` (user selections)
5+
- Example: Set `temperature: 0.7` as default, users can still override with their own values
6+
- Supports all parameter types including `web_search`, `temperature`, `topP`, `maxTokens`, etc.
7+
- Works with all `defaultParamsEndpoint` values (OpenAI, Anthropic, Google, etc.)
8+
- Useful for establishing baseline parameter values without requiring manual user configuration
9+
- See [Custom Parameters - Setting Default Parameter Values](/docs/configuration/librechat_yaml/object_structure/custom_params#setting-default-parameter-values) for details

components/home/Usage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import DateTicker from '@/components/ui/date-ticker'
2424
// ]
2525

2626
const initialStats = [
27-
{ name: 'GitHub stars', value: 30450 },
28-
{ name: 'Docker pulls', value: 7788560 },
27+
{ name: 'GitHub stars', value: 32000 },
28+
{ name: 'Docker pulls', value: 14132549 },
2929
{ name: 'Project started', value: new Date('2023-01-11') },
3030
]
3131

components/ui/input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from 'react'
22

33
import { cn } from '@/lib/utils'
44

5+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
56
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
67

78
const Input = React.forwardRef<HTMLInputElement, InputProps>(

components/ui/number-ticker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ export default function NumberTicker({
2626
const isInView = useInView(ref, { once: true, margin: '0px' })
2727

2828
useEffect(() => {
29-
isInView &&
29+
if (isInView) {
3030
setTimeout(() => {
3131
motionValue.set(direction === 'down' ? Math.floor(value * 0.75) : value)
3232
}, delay * 1000)
33+
}
3334
}, [motionValue, isInView, delay, value, direction])
3435

3536
useEffect(

components/ui/textarea.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from 'react'
22

33
import { cn } from '@/lib/utils'
44

5+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
56
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
67

78
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(

next-env.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
6+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

next.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ const withNextra = nextra({
7272

7373
// next config
7474
const nextraConfig = withNextra({
75+
eslint: {
76+
ignoreDuringBuilds: true,
77+
},
78+
typescript: {
79+
ignoreBuildErrors: true,
80+
},
7581
experimental: {
7682
esmExternals: 'loose',
7783
scrollRestoration: true,

0 commit comments

Comments
 (0)