|
|
@@ -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}`
|