Skip to content

Commit

Permalink
support gpt-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
moeakwak committed May 14, 2024
1 parent b000327 commit 85fb0e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/(panel)/admin/instances/instance-info-card-admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import * as React from "react";

import { Button, buttonVariants } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
import { Icons } from "@/components/icons";
import Link from "next/link";
import { FunctionButton } from "@/components/loading-button";
import { api } from "@/trpc/react";
import { copyToClipBoard } from "@/lib/clipboard";
import { InstanceInfoCard } from "../../_components/instance-info-card";
import { toast } from "sonner";
import { TRPCClientError } from "@trpc/client";
Expand Down
11 changes: 11 additions & 0 deletions src/resources/poekmon-bots.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@
"url": "https://qph.cf2.poecdn.net/main-thumb-pb-1012-200-afogukcxakrtskfdaitupfvchongovtr.jpeg"
}
},
{
"id": "Qm90OjMwMTU=",
"botId": 3015,
"handle": "GPT-4o",
"displayName": "GPT-4o",
"description": "OpenAI最强大的模型。在数量问题(数学和物理)、创意写作以及许多其他挑战性任务中比ChatGPT更强。由GPT-4o提供支持。",
"picture": {
"__typename": "URLBotImage",
"url": "https://qph.cf2.poecdn.net/main-thumb-pb-3015-200-ivodfqemfvztmvgafhdouijhknthkvmp.jpeg"
}
},
{
"id": "Qm90OjMwMDc=",
"botId": 3007,
Expand Down
2 changes: 2 additions & 0 deletions src/schema/external/openai.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const OpenAIChatCompletionRequestSchema = z.object({
model: z.string(),
messages: z.array(OpenAIRequestMessageSchema),
stream: z.boolean().nullish(),
logit_bias: z.record(z.number()).nullish(),
temperature: z.number().nullish(),
});
export type OpenAIChatCompletionRequest = z.infer<typeof OpenAIChatCompletionRequestSchema>;

Expand Down

0 comments on commit 85fb0e7

Please sign in to comment.