Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Feb 6, 2024
1 parent 5e0c4c7 commit e6b659f
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 28 deletions.
1 change: 1 addition & 0 deletions packages/ai/services/openai/api/chat-with-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
} from "ai";
import OpenAI from "openai";
import type { ChatCompletionCreateParams } from "openai/resources/chat";
import { defineEventHandler, defineLazyEventHandler, readBody } from "h3";
import { getServerConfig } from "../config/server";

const functions: ChatCompletionCreateParams.Function[] = [
Expand Down
1 change: 1 addition & 0 deletions packages/ai/services/openai/api/chat-with-vision.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { OpenAIStream, StreamingTextResponse } from "ai";
import OpenAI from "openai";
import { defineEventHandler, defineLazyEventHandler, readBody } from "h3";
import { getServerConfig } from "../config/server";

export default defineLazyEventHandler(async () => {
Expand Down
1 change: 1 addition & 0 deletions packages/ai/services/openai/api/chat.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { OpenAIStream, StreamingTextResponse } from "ai";
import OpenAI from "openai";
import type { ChatCompletionMessageParam } from "openai/resources/chat";
import { defineEventHandler, defineLazyEventHandler, readBody } from "h3";
import { getServerConfig } from "../config/server";

export default defineLazyEventHandler(async () => {
Expand Down
1 change: 1 addition & 0 deletions packages/ai/services/openai/api/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
experimental_StreamData,
} from "ai";
import OpenAI from "openai";
import { defineEventHandler, defineLazyEventHandler, readBody } from "h3";
import { getServerConfig } from "../config/server";

export default defineLazyEventHandler(async () => {
Expand Down
10 changes: 0 additions & 10 deletions packages/ai/services/openai/api/proxy/[...].ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/ai/services/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"devDependencies": {
"@celeris/constants": "workspace:*",
"@celeris/types": "workspace:*",
"h3": "^1.10.1",
"nitropack": "^2.8.1"
}
}
57 changes: 39 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions services/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"devDependencies": {
"@celeris/constants": "workspace:*",
"@celeris/types": "workspace:*",
"h3": "^1.10.1",
"nitropack": "^2.8.1"
}
}

0 comments on commit e6b659f

Please sign in to comment.