Reputation: 99
I tried to initialize the tool with
pdf_tool = PDFSearchTool(
config=dict(
llm=dict(
provider="azure_openai",
config=dict(
model=os.getenv("AZURE_OPENAI_DEPLOYMENT_NAME"),
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"),
temperature=0.0,
),
),
),
),
pdf=document
)
But that raises a schema.SchemaError: Key 'llm' error: Key 'config' error: Wrong key 'azure_endpoint' `
Upvotes: -1
Views: 353
Reputation: 99
The correct key for the PDFSearchTool config dictionary is: base_url=os.getenv("AZURE_OPENAI_ENDPOINT")
Upvotes: 0