-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
Question
Hi all,
Found this issue #4136 and seems related, but the OP said the issue was fixed without details :(
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"azure": {
"options": {
"apiKey": "",
"baseURL": "https://EXAMPLE.openai.azure.com/",
"resourceName": "EXAMPLE",
},
"models": {
"gpt-4.1": {
"name": "gpt-4.1",
},
},
},
},
"agent": {
"codeql-validator": {
"mode": "primary",
"model": "azure/gpt-4.1",
"prompt": "{file:./prompts/CODEQL_VALIDATOR.md}",
"tools": {
"write": true,
"edit": true,
"bash": true,
"webfetch": false
},
"permission": {
"edit": "allow",
"bash": "allow",
"webfetch": "deny"
}
}
}
}I have this configuration (with the API key, base URL, and resource name properly filled out). Additionally, I have an Azure OpenAI deployment called gpt-4.1 (case sensitive) created. However, when running opencode, I get the error: Resource not found.
Is there something wrong with the way I have the provider created?
Metadata
Metadata
Assignees
Labels
No labels