{ "name": "APIConnectionError", "message": "Error communicating with OpenAI: HTTPSConnectionPool(host='ai-yyds.com', port=443): Max retries exceeded with url: /v1/completions (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request')))", ...
raise APIConnectionError(request=request) from err openai.APIConnectionError: Connection error. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/.venv/lib/python3.12/site-packages/litellm/main.py", line 1007, in completion raise e...
openai.error.APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) Expected behavior 🤔 No response Your prompt 📝 #Paste your prompt here Contributor
importOpenAIfrom'openai';constclient=newOpenAI({apiKey:process.env['OPENAI_API_KEY'],// This is the default and can be omitted});asyncfunctionmain(){constparams:OpenAI.Chat.ChatCompletionCreateParams={messages:[{role:'user',content:'Say this is a test'}],model:'gpt-4o',};constchatComple...
async function main() { const job = await client.fineTuning.jobs .create({ model: 'gpt-4o', training_file: 'file-abc123' }) .catch(async (err) => { if (err instanceof OpenAI.APIError) { console.log(err.status); // 400 console.log(err.name); // BadRequestError console.log(...
async function main() { const job = await client.fineTuning.jobs .create({ model: 'gpt-3.5-turbo', training_file: 'file-abc123' }) .catch(async (err) => { if (err instanceof OpenAI.APIError) { console.log(err.status); // 400 console.log(err.name); // BadRequestError console...
N/AAPIConnectionError Azure OpenAI An example of using this library with Azure OpenAI can be foundhere. Please note there are subtle differences in API shape & behavior between the Azure OpenAI API and the OpenAI API, so using this library with Azure OpenAI may result in incorrect types, whic...
env.OPENAI_API_KEY, "OpenAI-Beta": "realtime=v1", }, }); } main(); Powered By Setting up an action when the connection is opened The above code creates the web socket connection to the API but doesn’t do anything with it yet. WebSockets allow us to set up actions to be ...
但Whisper 出现后——确切地说是OpenAI放出Whisper API后,一下子就把中英文语音识别的老猴王们统统打翻在地。 什么英文、中文、中英文混杂、甚至包括日语(你们懂的)、土耳其语,准确率都远远高于Google和讯飞。我认识的语言服务公司,都悄悄把原来交给讯飞与Google的钱,转交给OpenAI了。 我拿一个中文短视频做例子: ...
importOpenAIfrom'openai';constclient=newOpenAI({apiKey:process.env['OPENAI_API_KEY'],// This is the default and can be omitted});asyncfunctionmain(){constparams:OpenAI.Chat.ChatCompletionCreateParams={messages:[{role:'user',content:'Say this is a test'}],model:'gpt-4o',};constchatComple...