Add zai-sdk dependency and update model references to glm-4.5-air

This commit is contained in:
Xin Wang
2026-03-31 15:00:11 +08:00
parent 2219d82eb6
commit 65516c65a3
7 changed files with 36 additions and 27 deletions

View File

@@ -26,7 +26,7 @@ export const InputForm: React.FC<InputFormProps> = ({
}) => {
const [internalInputValue, setInternalInputValue] = useState("");
const [effort, setEffort] = useState("medium");
const [model, setModel] = useState("GLM-4.7");
const [model, setModel] = useState("glm-4.5-air");
const handleInternalSubmit = (e?: React.FormEvent) => {
if (e) e.preventDefault();
@@ -135,6 +135,14 @@ export const InputForm: React.FC<InputFormProps> = ({
<SelectValue placeholder="Model" />
</SelectTrigger>
<SelectContent className="bg-neutral-700 border-neutral-600 text-neutral-300 cursor-pointer">
<SelectItem
value="glm-4.5-air"
className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer"
>
<div className="flex items-center">
<Zap className="h-4 w-4 mr-2 text-emerald-400" /> glm-4.5-air
</div>
</SelectItem>
<SelectItem
value="GLM-4.7"
className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer"

View File

@@ -33,7 +33,7 @@ export const WelcomeScreen: React.FC<WelcomeScreenProps> = ({
/>
</div>
<p className="text-xs text-neutral-500">
Powered by GLM-4.7, Tavily, and LangChain LangGraph.
Powered by glm-4.5-air, GLM-4.7, Tavily, and LangChain LangGraph.
</p>
</div>
);