This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openai import AsyncOpenAI | |
from agents import Agent, Runner, OpenAIChatCompletionsModel | |
from agents import set_tracing_disabled | |
from openai.types.responses import ResponseTextDeltaEvent | |
import asyncio | |
external_client = AsyncOpenAI( | |
base_url = 'http://localhost:11434/v1', | |
api_key='ollama', # required, but unused | |
) |