fix: error
This commit is contained in:
parent
a3b664763e
commit
10d7a64f88
|
@ -79,7 +79,7 @@ export interface DalleRequestPayload {
|
||||||
export class ChatGPTApi implements LLMApi {
|
export class ChatGPTApi implements LLMApi {
|
||||||
private disableListModels = true;
|
private disableListModels = true;
|
||||||
|
|
||||||
path(path: string, model?: string): string {
|
path(path: string): string {
|
||||||
const accessStore = useAccessStore.getState();
|
const accessStore = useAccessStore.getState();
|
||||||
|
|
||||||
let baseUrl = "";
|
let baseUrl = "";
|
||||||
|
@ -157,7 +157,7 @@ export class ChatGPTApi implements LLMApi {
|
||||||
options.onController?.(controller);
|
options.onController?.(controller);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const speechPath = this.path(OpenaiPath.SpeechPath, options.model);
|
const speechPath = this.path(OpenaiPath.SpeechPath);
|
||||||
const speechPayload = {
|
const speechPayload = {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify(requestPayload),
|
body: JSON.stringify(requestPayload),
|
||||||
|
|
Loading…
Reference in New Issue