feat: add chatgpt-api-web link
This commit is contained in:
parent
efeb9a16ce
commit
69558a321f
@ -13,6 +13,7 @@ const COPY_OPTIONS = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const OPEN_LINK_OPTIONS = [
|
const OPEN_LINK_OPTIONS = [
|
||||||
|
{ key: 'chatgpt-api-web', text: 'chatgpt-api-web', value: 'chatgpt-api-web' },
|
||||||
{ key: 'ama', text: 'AMA 问天', value: 'ama' },
|
{ key: 'ama', text: 'AMA 问天', value: 'ama' },
|
||||||
{ key: 'opencat', text: 'OpenCat', value: 'opencat' },
|
{ key: 'opencat', text: 'OpenCat', value: 'opencat' },
|
||||||
];
|
];
|
||||||
@ -144,6 +145,10 @@ const TokensTable = () => {
|
|||||||
}
|
}
|
||||||
let url;
|
let url;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case 'chatgpt-api-web':
|
||||||
|
url = `https://heimoshuiyu.github.io/chatgpt-api-web/?key=sk-${key}&api=${serverAddress}/v1/chat/completions`
|
||||||
|
break;
|
||||||
|
|
||||||
case 'ama':
|
case 'ama':
|
||||||
url = `ama://set-api-key?server=${encodedServerAddress}&key=sk-${key}`;
|
url = `ama://set-api-key?server=${encodedServerAddress}&key=sk-${key}`;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user