Replies: 1 comment
-
|
You want to be passing in a custom |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i have the bellow code
import asyncio
from agent_framework.azure import AzureOpenAIResponsesClient
from openai import AsyncOpenAI, AsyncAzureOpenAI
async_client = AsyncAzureOpenAI(
api_key="xxxxx",
azure_deployment="gpt-4o-mini",
azure_endpoint="https://xxxx.openai.azure.com/",
api_version = "2024-02-01"
)
agent = AzureOpenAIResponsesClient(
deployment_name="gpt-4o-mini",
async_client=async_client,
).as_agent(
instructions="You are a helpful assistant agent."
)
async def main():
query = "Hello!?"
print(f"User: {query}")
result = await agent.run(query)
print(f"Result: {result}\n")
asyncio.run(main())
getting this error
agent_framework.exceptions.ServiceResponseException: <class 'agent_framework.azure._responses_client.AzureOpenAIResponsesClient'> service failed to complete the prompt: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
Beta Was this translation helpful? Give feedback.
All reactions