forked from XiaoMo/ChatGPT-Next-Web
fix: #1509 openai url split
This commit is contained in:
parent
9aa794248f
commit
8b0cf7d248
@ -10,8 +10,10 @@ export class ChatGPTApi implements LLMApi {
|
||||
public SubsPath = "dashboard/billing/subscription";
|
||||
|
||||
path(path: string): string {
|
||||
const openaiUrl = useAccessStore.getState().openaiUrl;
|
||||
if (openaiUrl.endsWith("/")) openaiUrl.slice(0, openaiUrl.length - 1);
|
||||
let openaiUrl = useAccessStore.getState().openaiUrl;
|
||||
if (openaiUrl.endsWith("/")) {
|
||||
openaiUrl = openaiUrl.slice(0, openaiUrl.length - 1);
|
||||
}
|
||||
return [openaiUrl, path].join("/");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user