feat: 更新了@babel包中的多个依赖包版本,包括@babel/helper-create-class-features-plugin、@babel/helper-environment-visitor等,以适应新版本的API和功能。

This commit is contained in:
zyh 2024-10-11 11:54:13 +00:00
parent ffa9f11360
commit ef45e66b17
3 changed files with 6751 additions and 7597 deletions

View File

@ -1,8 +1,10 @@
import { createAnthropic } from '@ai-sdk/anthropic'; import { createAnthropic } from '@ai-sdk/anthropic';
import { env } from 'node:process';
export function getAnthropicModel(apiKey: string) { export function getAnthropicModel(apiKey: string) {
const baseURL = env.ANTHROPIC_BASE_URL;
const anthropic = createAnthropic({ const anthropic = createAnthropic({
apiKey, apiKey,
baseURL,
}); });
return anthropic('claude-3-5-sonnet-20240620'); return anthropic('claude-3-5-sonnet-20240620');

View File

@ -14,7 +14,7 @@
"test:watch": "vitest", "test:watch": "vitest",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .", "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"lint:fix": "npm run lint -- --fix", "lint:fix": "npm run lint -- --fix",
"start": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings", "start": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --port 23895",
"typecheck": "tsc", "typecheck": "tsc",
"typegen": "wrangler types", "typegen": "wrangler types",
"preview": "pnpm run build && pnpm run start" "preview": "pnpm run build && pnpm run start"
@ -87,6 +87,7 @@
"is-ci": "^3.0.1", "is-ci": "^3.0.1",
"node-fetch": "^3.3.2", "node-fetch": "^3.3.2",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"sass-embedded": "^1.79.4",
"typescript": "^5.5.2", "typescript": "^5.5.2",
"unified": "^11.0.5", "unified": "^11.0.5",
"unocss": "^0.61.3", "unocss": "^0.61.3",

File diff suppressed because it is too large Load Diff