墨佬真的是无敌的存在
可以用了,感谢大佬
就是vertex experess如果不指定location的话会很慢且高频429,请问如果要指定location的话该怎么填base url?在cherry studio里填的是https://aiplatform.googleapis.com/v1/projects/1060356024613/locations/global/publishers/google
佬,能不能把这个语音模式弄成两种模式,一种是将语音转换成文字,另一种是直接就发送音频
我自己的话是挺喜欢使用ai studio里面的这个语音发送,它是直接发送音频的完全不进行文字转换,我是觉得音频的话它不仅能听懂而且可能还能包含一些额外的语气信息,另外如果再转成文字再发送给ai的话会多一层等待时间
哦原来这两个是不一样的,太强了
有点顶的
刚部署了个vertex express的deno中转,可以不用梯子直连而且在cherry studio速度很快,也不用再指定location了,但在amc用不了,请问amc的vertex express是不是还不支持自定义base url?
你中转以后是什么格式
gemini格式,这是中转代码
const TARGET_BASE_URL = “https://aiplatform.googleapis.com/v1/publishers/google/models”;
Deno.serve(async (req: Request) => {
const url = new URL(req.url);if (req.method === “OPTIONS”) {
return new Response(null, {
headers: {
“Access-Control-Allow-Origin”: “*”,
“Access-Control-Allow-Methods”: “POST, OPTIONS”,
“Access-Control-Allow-Headers”: “Content-Type, x-goog-api-key”,
},
});
}if (req.method !== “POST”) {
return new Response(“Method Not Allowed”, { status: 405 });
}try {
let apiKey = req.headers.get(“x-goog-api-key”);
if (!apiKey) {
apiKey = url.searchParams.get(“key”);
}if (!apiKey) { return new Response("Missing API Key (x-goog-api-key header or key query param)", { status: 401 }); } const pathRegex = /models\/([^:]+)(:.*)$/; const match = url.pathname.match(pathRegex); if (!match) { return new Response("Invalid URL format. Expected .../models/{model}:{action}", { status: 400 }); } const modelName = match[1]; const action = match[2]; const newParams = new URLSearchParams(url.searchParams); newParams.set("key", apiKey); const targetUrl = `${TARGET_BASE_URL}/${modelName}${action}?${newParams.toString()}`; console.log(`[Proxy] Forwarding to: ${targetUrl}`); const proxyResponse = await fetch(targetUrl, { method: "POST", headers: { "Content-Type": "application/json", }, body: req.body, }); return new Response(proxyResponse.body, { status: proxyResponse.status, headers: { "Content-Type": proxyResponse.headers.get("Content-Type") || "application/json", "Access-Control-Allow-Origin": "*", }, });} catch (error) {
console.error(“Proxy Error:”, error);
return new Response(Internal Server Error: ${error.message}, { status: 500 });
}
});
实用性还在进一步增强
OK,现在可以了
太牛了佬 又用上了
要是能集成到cherry studio里用就好了
太牛了啊
好快啊 ,我去试试
很好用,想再提几点小建议
1.回答中增加标记模型名
2.系统提示词可在首页右上方点开和修改
3.生图宽高比增加auto选项(如果有的话,aistudio好像有)
前两个建议都是影响UI美观的点,什么东西都塞到UI里面,只会更难看。第三个不知道能不能做






