mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
⚙️ fix: Ensure Azure AI Search TOP is a number (#3891)
allows configuration through AZURE_AI_SEARCH_SEARCH_OPTION_TOP enviroment variable
This commit is contained in:
parent
35a89bfa99
commit
07e5531b5b
2 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ class AzureAISearch extends StructuredTool {
|
||||||
try {
|
try {
|
||||||
const searchOption = {
|
const searchOption = {
|
||||||
queryType: this.queryType,
|
queryType: this.queryType,
|
||||||
top: this.top,
|
top: typeof this.top === 'string' ? Number(this.top) : this.top,
|
||||||
};
|
};
|
||||||
if (this.select) {
|
if (this.select) {
|
||||||
searchOption.select = this.select.split(',');
|
searchOption.select = this.select.split(',');
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ class AzureAISearch extends StructuredTool {
|
||||||
try {
|
try {
|
||||||
const searchOption = {
|
const searchOption = {
|
||||||
queryType: this.queryType,
|
queryType: this.queryType,
|
||||||
top: this.top,
|
top: typeof this.top === 'string' ? Number(this.top) : this.top,
|
||||||
};
|
};
|
||||||
if (this.select) {
|
if (this.select) {
|
||||||
searchOption.select = this.select.split(',');
|
searchOption.select = this.select.split(',');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue