x1ongzhu 2 年 前
コミット
a6dbfd227d
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/chatapi/chatgpt-api.ts

+ 2 - 2
src/chatapi/chatgpt-api.ts

@@ -179,8 +179,8 @@ export class ChatGPTAPI {
         }
 
         const responseP = new Promise<types.ChatMessage>(async (resolve, reject) => {
-            // const url = `${this._apiEndpoint}/openai/deployments/${this._apiDeployment}/chat/completions?api-version=${this._apiVersion}`
-            const url = `https://gateway.ai.cloudflare.com/v1/cc11bed478e65817d30878b0a796422d/openai-gateway/azure-openai/${this._apiInstance}/${this._apiDeployment}/chat/completions?api-version=${this._apiVersion}`
+            const url = `${this._apiEndpoint}/openai/deployments/${this._apiDeployment}/chat/completions?api-version=${this._apiVersion}`
+            // const url = `https://gateway.ai.cloudflare.com/v1/cc11bed478e65817d30878b0a796422d/openai-gateway/azure-openai/${this._apiInstance}/${this._apiDeployment}/chat/completions?api-version=${this._apiVersion}`
             const headers = {
                 'Content-Type': 'application/json',
                 'api-key': `${this._apiKey}`