import { Button, Input } from "antd";
import { useState } from "react";
interface IOpenAi {
model: string;
messages: Message[];
prompt: string;
temperature: number;
stream: boolean;
}
interface Message {
role: string;
content: string;
}
const AI = () => {
const [url, setUrl] = useState(
"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
);
const [key, setKey] = useState("");
const [model, setModel] = useState("qwen-max-latest");
const [concurrent, setConcurrent] = useState(10);
return (
<>
{
setUrl(event.target.value);
}}
/>
{
setKey(event.target.value);
}}
/>
{
setModel(event.target.value);
}}
/>
{
setConcurrent(parseInt(event.target.value));
}}
/>
>
);
};
export default AI;