azure / openai-samples Goto Github PK
View Code? Open in Web Editor NEWSamples for working with Azure OpenAI Service
Home Page: https://aka.ms/azure-openai
License: Other
Samples for working with Azure OpenAI Service
Home Page: https://aka.ms/azure-openai
License: Other
Embeddings are a 1536 vector. We should limit the output to something like [:20]
I can't find any documentation that states how to use managed identity auth to OpenAI instead of using the access key, but I can find a reference in Microsoft docs saying it is supported.
Is there a roadmap for if / when the Azure OpenAI service will be available for local deployments via containers?
Local deployment seems to be available for most of the other Cognitive Services. I was wondering if this is also planned for the OpenAI service.
Pls guide the way to do it
Hi,
I'm facing an issue, I'm able to use in Python the code from the Azure OpenAI sandbox, so my keys and rest of configuration is ok, but when I try to use your samples I got a Invalid Request Error: Resource not found,
InvalidRequestError Traceback (most recent call last)
Cell In[121], line 3
1 max_response_tokens = 500
----> 3 response = send_message(messages, chatgpt_model_name, max_response_tokens)
4 messages.append({"role": "assistant", "content": response})
6 print_conversation(messages)
Cell In[117], line 4, in send_message(messages, model_name, max_response_tokens)
3 def send_message(messages, model_name, max_response_tokens=500):
----> 4 response = openai.ChatCompletion.create(
5 engine=chatgpt_model_name,
6 messages=messages,
7 temperature=0.5,
8 max_tokens=max_response_tokens,
9 top_p=0.9,
10 frequency_penalty=0,
11 presence_penalty=0,
12 )
13 return response['choices'][0]['message']['content']
File /opt/homebrew/lib/python3.10/site-packages/openai/api_resources/chat_completion.py:25, in ChatCompletion.create(cls, *args, **kwargs)
23 while True:
24 try:
---> 25 return super().create(*args, **kwargs)
...
684 rbody, rcode, resp.data, rheaders, stream_error=stream_error
685 )
686 return resp
InvalidRequestError: Resource not found
Regards.
See here for reference on EVAR names, as well as pattern for using shell environment variables or inline Python os.environ
settings. https://github.com/hwchase17/langchain/blob/master/docs/modules/llms/integrations/azure_openai_example.ipynb
Specifically:
OPENAI_API_KEY
OPENAI_API_TYPE
OPENAI_API_VERSION
OPENAI_API_BASE
I have been onboarded to the Azure OpenAI Service, but I can't create it in azure portal.
My Account: [email protected]
My Subscription ID: 8c3e12cf-16b0-4c55-9ef2-d2fdd475e158
Is there a script where all the service are getting deployed on Azure and we can test the app.
Tried setting up each service separately and run the solution locally but no luck
I can't find how to do that so can you provide some solution.
My data will be about some user and its projects.
Hi,
These samples are great, however they assume you have manually setup OpenAI services in Azure, would it be possible to provide a sample Terraform script to build the infrastructure?
Thank you,
Peter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.