Comments (4)
@nickcoast - if you look at the Azure AI Resource you are using (Azure AI Studio
> Manage
> Select your resource
) and then click on the Connections
in the sidebar:
What connections do you see listed there of type "Azure OpenAI"? The manual should have had a step that helped you set up the same named connections in both VS Code and Azure Open AI ahead of time so just checking if the latter was completed.
from contoso-chat.
Hi @nitya thanks for taking the time. I have two connections of type "Azure OpenAI", the "Default" one shared to all projects, and the "aaoi_connection". Both have the same "Target" URI.
This is how I had set it up.
Following the instructions from the "AI Tour" event:
- I created the connections (including
aoai-connection
) in AI Studio and ML Studio - I copied the keys and endpoints into
.env
in the Codespace - I ran
connections/create-connections.ipynb
to set up local connections - I ran
/contoso-chat/flow.dag.yaml
and it works, no connection errors.
from contoso-chat.
@nickcoast that is strange. Yes the steps seem right and I can see you had both connections setup correctly. The only thing I can think of is that the Cloud connection (made via the Azure AI Studio UI) had the API Key wrong for some reason.
401 indicates it was an authorization issue.
Can you check the key in the AOAI Connection and verify it is the same as local? (BTW the cloud entry should NOT have " " enclosing the key value - I had that issue when I copied the stringified version directly from .env)
from contoso-chat.
@nitya Quotes weren't the issue. But when I copy-pasted I somehow clipped 1 character from the beginning of the key. So that explains why the Flow worked in the Codespace but not on ai.azure.com.
After fixing that, this step works. But now the next one, the deploy step, fails with Environment '{}' is not registered
.
I'll start a new issue for that. Thank you for looking into this!
from contoso-chat.
Related Issues (20)
- The target scope "subscription" does not match the deployment scope "resourceGroup". HOT 11
- Deployment template validation failed: 'The provided value for the template parameter 'environmentName' is not valid. Length of the value should be greater than or equal to '1' HOT 3
- Fill in the 'About' section for SEO
- $RANDOM does not exist in `sh` HOT 1
- InvalidRunStatusError When Running "evaluate-chat-prompt-flow.ipynb" notebook HOT 1
- Notebook for testing History from an Endpoint deployment HOT 1
- No module named 'promptflow.azure' HOT 2
- Azure Developer CLI Template Guidelines
- InsufficientQuota Error HOT 1
- 404 when 'Run All' local PromptFlow HOT 1
- ERROR: failed running post hooks: 'postprovision' hook failed with exit code: '1', Path: 'infra\hooks\postprovision.sh'. : exit code: 1
- Acceptance criteria checklist (DoD)
- How can I get the values of SUPPORT_ENDPOINT = "", SUPPORT_KEY = "", and CHAT_ENDPOINT = "", CHAT_KEY = ""? HOT 1
- Missing architectural image in readme HOT 1
- Test Template
- forked repo codespaces container can't build HOT 7
- Endpoint test fails due to missing API key HOT 1
- Promptflow huggingface api swapping encounter template error issues for mixtral 7b
- Endpoint resources are no longer supported, and have been migrated to connections. Please delete this resource and re-create it as a connection. HOT 5
- Deployment chat-deployment-1718994551 not found in endpoint HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contoso-chat.