first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
3
packages/ai/biome.json
Normal file
3
packages/ai/biome.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": ["../../biome.json"]
|
||||
}
|
||||
1
packages/ai/client.ts
Normal file
1
packages/ai/client.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "@ai-sdk/react";
|
||||
8
packages/ai/index.ts
Normal file
8
packages/ai/index.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { openai } from "@ai-sdk/openai";
|
||||
|
||||
export const textModel = openai("gpt-4o-mini");
|
||||
export const imageModel = openai("dall-e-3");
|
||||
export const audioModel = openai("whisper-1");
|
||||
|
||||
export * from "ai";
|
||||
export * from "./lib";
|
||||
1
packages/ai/lib/index.ts
Normal file
1
packages/ai/lib/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./prompts";
|
||||
9
packages/ai/lib/prompts.ts
Normal file
9
packages/ai/lib/prompts.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* List product names prompt
|
||||
*
|
||||
* @param {string} topic - The topic to generate product names for.
|
||||
* @return {string} The prompt.
|
||||
*/
|
||||
export const promptListProductNames = (topic: string): string => {
|
||||
return `List me five funny product names that could be used for ${topic}`;
|
||||
};
|
||||
22
packages/ai/package.json
Normal file
22
packages/ai/package.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"@ai-sdk/anthropic": "^1.2.12",
|
||||
"@ai-sdk/openai": "^1.3.22",
|
||||
"@ai-sdk/react": "^1.2.12",
|
||||
"ai": "^4.3.16",
|
||||
"openai": "^5.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@repo/tsconfig": "workspace:*",
|
||||
"@types/react": "19.1.6",
|
||||
"typescript": "5.8.3"
|
||||
},
|
||||
"main": "./index.ts",
|
||||
"name": "@repo/ai",
|
||||
"scripts": {
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"types": "./**/.tsx",
|
||||
"version": "0.0.0"
|
||||
}
|
||||
5
packages/ai/tsconfig.json
Normal file
5
packages/ai/tsconfig.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"extends": "@repo/tsconfig/react-library.json",
|
||||
"include": ["**/*.ts"],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue