librechat-data-provider 0.7.74 → 0.7.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-query/index.es.js +1 -1
- package/dist/react-query/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +1 -0
- package/src/schemas.ts +3 -1
- package/src/types/assistants.ts +3 -2
package/package.json
CHANGED
package/src/config.ts
CHANGED
package/src/schemas.ts
CHANGED
|
@@ -230,7 +230,7 @@ export const googleSettings = {
|
|
|
230
230
|
},
|
|
231
231
|
maxOutputTokens: {
|
|
232
232
|
min: 1 as const,
|
|
233
|
-
max:
|
|
233
|
+
max: 64000 as const,
|
|
234
234
|
step: 1 as const,
|
|
235
235
|
default: 8192 as const,
|
|
236
236
|
},
|
|
@@ -645,6 +645,8 @@ export const tConvoUpdateSchema = tConversationSchema.merge(
|
|
|
645
645
|
export const tQueryParamsSchema = tConversationSchema
|
|
646
646
|
.pick({
|
|
647
647
|
// librechat settings
|
|
648
|
+
/** The model spec to be used */
|
|
649
|
+
spec: true,
|
|
648
650
|
/** The AI context window, overrides the system-defined window as determined by `model` value */
|
|
649
651
|
maxContextTokens: true,
|
|
650
652
|
/**
|
package/src/types/assistants.ts
CHANGED
|
@@ -150,11 +150,12 @@ export type File = {
|
|
|
150
150
|
|
|
151
151
|
/* Agent types */
|
|
152
152
|
|
|
153
|
-
export type AgentParameterValue = number | null;
|
|
153
|
+
export type AgentParameterValue = number | string | null;
|
|
154
154
|
|
|
155
155
|
export type AgentModelParameters = {
|
|
156
156
|
model?: string;
|
|
157
157
|
temperature: AgentParameterValue;
|
|
158
|
+
maxContextTokens: AgentParameterValue;
|
|
158
159
|
max_context_tokens: AgentParameterValue;
|
|
159
160
|
max_output_tokens: AgentParameterValue;
|
|
160
161
|
top_p: AgentParameterValue;
|
|
@@ -447,7 +448,7 @@ export type ContentPart = (
|
|
|
447
448
|
PartMetadata;
|
|
448
449
|
|
|
449
450
|
export type TMessageContentParts =
|
|
450
|
-
| { type: ContentTypes.ERROR; text
|
|
451
|
+
| { type: ContentTypes.ERROR; text?: string | (Text & PartMetadata); error?: string }
|
|
451
452
|
| { type: ContentTypes.THINK; think: string | (Text & PartMetadata) }
|
|
452
453
|
| { type: ContentTypes.TEXT; text: string | (Text & PartMetadata); tool_call_ids?: string[] }
|
|
453
454
|
| {
|