refac
Co-Authored-By: Sergey Zinchenko <sergey.zinchenko.rnd@gmail.com>
This commit is contained in:
co-authored by
Sergey Zinchenko
parent
8a104a7ab1
commit
c8f851bd2d
@@ -101,7 +101,8 @@
|
||||
key,
|
||||
config: {
|
||||
auth_type,
|
||||
...(provider ? { provider } : azure ? { azure: true } : {}),
|
||||
...(provider ? { provider } : {}),
|
||||
...(azure ? { azure: true } : {}),
|
||||
api_version: apiVersion,
|
||||
...(_headers ? { headers: _headers } : {})
|
||||
}
|
||||
@@ -189,7 +190,8 @@
|
||||
connection_type: connectionType,
|
||||
auth_type,
|
||||
headers: headers ? JSON.parse(headers) : undefined,
|
||||
...(provider ? { provider } : !ollama && azure ? { azure: true } : {}),
|
||||
...(provider ? { provider } : {}),
|
||||
...(!ollama && azure ? { azure: true } : {}),
|
||||
...(azure ? { api_version: apiVersion } : {}),
|
||||
...(apiType ? { api_type: apiType } : {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user