Spaces:
Runtime error
Runtime error
Download next/src/utils/constants.ts from dia-gov/AgentGPT-Web-GUI: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/utils/constants.ts
- Command line
-
hf download hf://spaces/dia-gov/AgentGPT-Web-GUI/next/src/utils/constants.ts
-
curl -L -o constants.ts https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/utils/constants.ts
602 Bytes
| import { ENGLISH } from "./languages"; | |
| import type { ModelSettings } from "../types"; | |
| export const GPT_35_TURBO = "gpt-3.5-turbo" as const; | |
| export const GPT_4 = "gpt-4" as const; | |
| export const GPT_MODEL_NAMES = [GPT_35_TURBO, GPT_4]; | |
| export const DEFAULT_MAX_LOOPS_FREE = 25 as const; | |
| export const DEFAULT_MAX_LOOPS_CUSTOM_API_KEY = 10 as const; | |
| export const getDefaultModelSettings = (): ModelSettings => { | |
| return { | |
| customApiKey: "", | |
| language: ENGLISH, | |
| customModelName: GPT_35_TURBO, | |
| customTemperature: 0.8, | |
| customMaxLoops: DEFAULT_MAX_LOOPS_FREE, | |
| maxTokens: 1250, | |
| }; | |
| }; | |