Hi I am trying to run my code that integrates with the chat completions API (OpenAI API) however when I try to submit a prompt to it it throws this error: AttributeError: text This error is specific to this part of the code : Extract the generated response text...
client = AzureOpenAI(**self._to_credential_kwargs(credentials)) if ai_model_entity.entity.model_properties.get(ModelPropertyKey.MODE) == LLMMode.CHAT.value: if model.startswith("o1"): client.chat.completions.create( messages=[{"role": "user", "content": "ping"}], model=model, temperat...
I am trying to get streaming response for chat completion using AsyncAzureOpenAI with stream=True, but I'm getting a null object output. I am using the following code: import os import openai import asyncio from openai import AzureOpenAI,…
`System.NullReferenceException: Object reference not set to an instance of an object. at OpenAI.Chat.StreamingChatCompletionUpdate.get_ContentUpdate() at Program.Main(String[] args) in Reproduction Steps AzureOpenAIClient azureClient = new( new Uri("https://your-azure-openai-resource.com"), new...
Agents.OpenAI Microsoft.SemanticKernel.AudioToText Microsoft.SemanticKernel.ChatCompletion Microsoft.SemanticKernel.Connectors.AzureAISearch Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL Microsoft.SemanticKerne...
AI.OpenAI.Chat Assembly: Azure.AI.OpenAI.dll Package: Azure.AI.OpenAI v2.0.0 C# Copy public static System.Collections.Generic.IReadOnlyList<Azure.AI.OpenAI.Chat.ChatDataSource> GetDataSources (this OpenAI.Chat.ChatCompletionOptions options); Parameters options OpenAI.Chat.ChatCompletionOptions...
client = AzureOpenAI(**self._to_credential_kwargs(credentials)) if ai_model_entity.entity.model_properties.get(ModelPropertyKey.MODE) == LLMMode.CHAT.value: if model.startswith("o1"): client.chat.completions.create( messages=[{"role": "user", "content": "ping"}], model=model, temperat...
Agents.OpenAI Microsoft.SemanticKernel.AudioToText Microsoft.SemanticKernel.ChatCompletion Microsoft.SemanticKernel.Connectors.AzureAISearch Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL Microsoft.SemanticKernel.Connect...