Wire up Azure OpenAI completion provider (#8646)
This PR wires up support for [Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/overview) as an alternative AI provider in the assistant panel. This can be configured using the following in the settings file: ```json { "assistant": { "provider": { "type": "azure_openai", "api_url": "https://{your-resource-name}.openai.azure.com", "deployment_id": "gpt-4", "api_version": "2023-05-15" } }, } ``` You will need to deploy a model within Azure and update the settings accordingly. Release Notes: - N/A
This commit is contained in:
parent
7c1ef966f3
commit
eb1ab69606
7 changed files with 290 additions and 65 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -93,6 +93,7 @@ dependencies = [
|
|||
"postage",
|
||||
"rand 0.8.5",
|
||||
"rusqlite",
|
||||
"schemars",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tiktoken-rs",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue