chingychun
chingychun2mo ago

Azure OpenAI Assistant template help

I filled in the Azure OpenAI Assistant node info/keys following the youtube video. But still can't Ship, and testing the node returns error as follows: { "nodeId": "test-node-6614d3ec-2cfc-49d1-b754-efb5d7a24af1", "nodeName": "Azure OpenAI Assistant", "stage": "building node", "errorObject": { "errors": [ { "id": "", "location": { "column": 9, "file": "../../../tmp/test-node-6614d3ec-2cfc-49d1-b754-efb5d7a24af1XXXXXX0fK7WB/index.ts", "length": 18, "line": 2, "lineText": "import { AzureKeyCredential } from "@azure/openai";", "namespace": "", "suggestion": "" }, "notes": [], "pluginName": "", "text": "No matching export in "../../../tmp/test-node-6614d3ec-2cfc-49d1-b754-efb5d7a24af1XXXXXX0fK7WB/node_modules/@azure/openai/dist/esm/index.js" for import "AzureKeyCredential"" } ], "warnings": [] } }
Solution:
solved. thanks for the support. made a new azure resource and reinput all the keys/details
Jump to solution
12 Replies
AI Support
AI Support2mo ago
AI Support Bot Information
<@683325175093264389> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2mo ago
AI Response
The error you are encountering with the "No matching export in @azure/openai for AzureKeyCredential" seems to be related to incorrect package imports or missing exports in the node environment. Here are some possible solutions: 1. Check Package Version: Ensure that you have the correct version of the @azure/openai package that includes the AzureKeyCredential export. You may need to update the package to the latest version. 2. Verify Import Statement: Double-check the import statement in your code. Ensure that you are using the correct path and export name:
import { AzureKeyCredential } from "@azure/openai";

import { AzureKeyCredential } from "@azure/openai";

3. Configuration Issues: Sometimes configuration issues in your environment may cause such errors. Ensure that all dependencies are correctly installed and configured. 4. Use Alternative Methods: If the required export is missing, you might consider using alternative methods or packages provided by Azure to achieve the same functionality. If these steps do not resolve the issue, I recommend reaching out to BuildShip support for more specific guidance, as this might be related to the environment's unique configurations. You can send a support request via in-app support for detailed help. References: - For detailed insights or similar issues, you can review the following document【4:3†source】 .
BuildShip AI Support
chingychun
chingychun2mo ago
very confused lol am i correct to say the package was not installed?
Gaurav Chadha
Gaurav Chadha2mo ago
Hi @chingychun, It seems the issue with the AzureKeyCredential package, we'll fix and update it now. For now you can simply replace the line 2 import (AzureKeyCredentials) with import { AzureKeyCredential } from "@azure/core-auth";. This package should work.
chingychun
chingychun2mo ago
It works/builds now, but i'm not getting a Response from Azure AI. Just the threadID: { "message": "Teach me about World War 2", "threadId": "thread_DM9CUQ5fsLnmESd6m8bpuKqC" }
Gaurav Chadha
Gaurav Chadha2mo ago
Could you please check if your return has this response, the template is update you can clone again.
No description
chingychun
chingychun2mo ago
yes it has it. let me try it again with new clone still the same result with new clone { "messages": [ { "role": "user", "threadId": "thread_K7bB1JCnDCfLYsExwxLHgwxn", "runId": null, "createdAt": "Tue Aug 27 2024 06:50:58 GMT+0000 (Coordinated Universal Time)", "id": "msg_I0DIaOpeyoXvrjlMtAbzN48L", "assistantId": null, "metadata": {}, "content": [ { "type": "text", "text": { "annotations": [], "value": "Teach me about World War 2" }, "imageFile": {} } ] } ], "threadId": "thread_K7bB1JCnDCfLYsExwxLHgwxn", "annotations": [], "response": "Teach me about World War 2" } i think the reponse from AzureAI is wrong?
Gaurav Chadha
Gaurav Chadha2mo ago
You can submit via app we can check further
chingychun
chingychun2mo ago
Instructions to submit via app?
Gaurav Chadha
Gaurav Chadha2mo ago
Support Messages – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
chingychun
chingychun2mo ago
thank you
Solution
chingychun
chingychun2mo ago
solved. thanks for the support. made a new azure resource and reinput all the keys/details