Skip to content

Fix nuget, include tokenizer data files into the output dir - #269

Merged
Shawn Callegari (shawncal) merged 1 commit into
microsoft:mainfrom
dluc:dluc104-fixnuget
Apr 2, 2023
Merged

Fix nuget, include tokenizer data files into the output dir#269
Shawn Callegari (shawncal) merged 1 commit into
microsoft:mainfrom
dluc:dluc104-fixnuget

Conversation

@dluc

Copy link
Copy Markdown
Contributor

Motivation and Context

SK nuget is not deploying the tokenizer data files (encoder.json and vocab.bpe) into the app build folder, only showing the files in the explorer. As a result the tokenizer doesn't work, throwing a FileNotFoundException.

Description

  • Updated csproj file so that the auto-generated nuspec file has copyToOutput="true"
  • Improved the code to use the assembly location, supporting also the scenario where the tokenizer might be in a different assembly.

@dluc Devis Lucato (dluc) added the PR: ready for review All feedback addressed, ready for reviews label Apr 1, 2023
@shawncal
Shawn Callegari (shawncal) merged commit 9a825d0 into microsoft:main Apr 2, 2023
@dluc
Devis Lucato (dluc) deleted the dluc104-fixnuget branch April 3, 2023 16:44
Desmond Howard (dehoward) pushed a commit to lemillermicrosoft/semantic-kernel that referenced this pull request Jun 1, 2023
golden-aries pushed a commit to golden-aries/semantic-kernel that referenced this pull request Oct 10, 2023
### Description
webapp/Dockerfile.nginx flag needs to have --production=false otherwise
react-scripts won't be installed to build the webapp

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: ready for review All feedback addressed, ready for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants