LLamaSharp icon indicating copy to clipboard operation
LLamaSharp copied to clipboard

Not able to read fields from appsetings.json

Open Ibrahim21310 opened this issue 1 year ago • 4 comments

Not able to read app settings json fields (LLOptions - class represent field in appsettings json) after deployment with IIS

Ibrahim21310 avatar Mar 13 '24 13:03 Ibrahim21310

Hi, could you please provide some more descriptions about it? I searched LLOptions in the repo but found no result.

SanftMonster avatar Mar 15 '24 09:03 SanftMonster

Hi, It's custom json field used in appsettings json file. We used this in our application to load specific dropdown options.

My concern is we are unable to read appsettings json files after deployed with IIS. But in local it works fine and the dropdown is displayed with value of Json field.

We are reading the json field value using options pattern in asp.net core.

I will attach the link containing the details option pattern integration for your reference.

Thanks for the response and I am looking forward to hearing from you about root cause.

Best regards Ibrahim Bathusha KB

On Fri, 15 Mar 2024, 1:28 PM Rinne @.***> wrote:

Hi, could you please provide some more descriptions about it? I searched LLOptions in the repo but found no result.

— Reply to this email directly, view it on GitHub https://github.com/SciSharp/LLamaSharp/issues/598#issuecomment-1999259546, or unsubscribe https://github.com/notifications/unsubscribe-auth/BG56F4TRAPR2NTRBIAS7TRDYYK5NDAVCNFSM6AAAAABEUEYNOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJZGI2TSNJUGY . You are receiving this because you authored the thread.Message ID: @.***>

Ibrahim21310 avatar Mar 16 '24 07:03 Ibrahim21310

Additionally, I would like to class name which is available in appsettings json file in the repository.

Sorry for the trouble, I mistakenly mentioned LLamaOptions as LLOptions. Just now checked the code.

Best Regards Ibrahim Bathusha KB

On Sat, 16 Mar 2024, 11:38 AM Ibrahim Bathusha @.***> wrote:

Hi, It's custom json field used in appsettings json file. We used this in our application to load specific dropdown options.

My concern is we are unable to read appsettings json files after deployed with IIS. But in local it works fine and the dropdown is displayed with value of Json field.

We are reading the json field value using options pattern in asp.net core.

I will attach the link containing the details option pattern integration for your reference.

Thanks for the response and I am looking forward to hearing from you about root cause.

Best regards Ibrahim Bathusha KB

On Fri, 15 Mar 2024, 1:28 PM Rinne @.***> wrote:

Hi, could you please provide some more descriptions about it? I searched LLOptions in the repo but found no result.

— Reply to this email directly, view it on GitHub https://github.com/SciSharp/LLamaSharp/issues/598#issuecomment-1999259546, or unsubscribe https://github.com/notifications/unsubscribe-auth/BG56F4TRAPR2NTRBIAS7TRDYYK5NDAVCNFSM6AAAAABEUEYNOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJZGI2TSNJUGY . You are receiving this because you authored the thread.Message ID: @.***>

Ibrahim21310 avatar Mar 16 '24 12:03 Ibrahim21310

Is this issue resolved? I am still facing this issue.

vinaychavadi avatar Aug 16 '24 17:08 vinaychavadi