• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microsoft / teams-ai / 8084317865
80%

Build:
DEFAULT BRANCH: main
Ran 28 Feb 2024 05:08PM UTC
Jobs 3
Files 314
Run time 32s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Feb 2024 05:07PM UTC coverage: 80.509% (+0.005%) from 80.504%
8084317865

push

github

web-flow
[JS] fix: Change default encoder for Tokenizer (#1352)

## Linked issues

closes: #1171 

## Details

In favor of more accurate token calculation, I have removed
`gpt-3-encoder` and replaced with `gpt-tokenizer`, which is a TypeScript
rewrite and modernization of the original package. By default,
`gpt-tokenizer` uses `cl100k_base` (gpt 3.5 and gpt 4) encoding and can
be configured as needed to use different encoders for other models.

As an example, GPT3Tokenizer has been updated to use encoder/decoder for
text-davinci-003 and can be passed in to be used in LLMClient. (See
`GPT3Tokenizer`)

- Remove package `gpt-3-encoder`
- Add package `gpt-tokenizer` (to replace above)
- Create `GPTTokenizer.ts` as the default encoder.
- `GPT3Tokenizer` now uses `gpt-tokenizer`
- Add unit tests / fix unit tests to use `GPTTokenizer`


## Other changes
- Update docs (`teams-ai.api.json` and `teams-ai.api.md`)
- Prevent test files from being published (`tsconfig`)
- Update inline docs to Application, Meetings, Utilities,
ActionAugmentationSection, DefaultAugmentation, MonologueAugmentation,
SequenceAugmentation, TeamsBotSSOPrompt,
TeamsSSOAdaptiveCardAuthentication, TeamsSSOBotAuthentication,
TeamsSSOMessageExtensionAuthentication, TextDataSource, TestMemoryFork,
OpenAIModel, ActionPlanner, AssistantsPlanner, LLMClient, Prompt,
PromptManager,
- Turn off "no-prototype-builtins" eslint rule
- Fix broken link in `/js/packages/teams-ai/README.md`

## Attestation Checklist

- [x] My code follows the style guidelines of this project

- I have checked for/fixed spelling, linting, and other errors
- I have commented my code for clarity
- I have made corresponding changes to the documentation (updating the
doc strings in the code is sufficient)
- My changes generate no new warnings
- I have added tests that validates my changes, and provides sufficient
test coverage. I have tested with:
  - Local testing
  - E2E testing in Teams... (continued)

2632 of 3775 branches covered (69.72%)

Branch coverage included in aggregate %.

9409 of 11181 relevant lines covered (84.15%)

18.29 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 python 8084317865.1 28 Feb 2024 05:08PM UTC 111
89.44
GitHub Action Run
2 javascript 8084317865.2 28 Feb 2024 05:08PM UTC 62
73.0
GitHub Action Run
3 dotnet 8084317865.3 28 Feb 2024 05:10PM UTC 141
80.77
GitHub Action Run
Source Files on build 8084317865
  • Tree
  • List 314
  • Changed 19
  • Source Changed 19
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8084317865
  • 3bd09dfb on github
  • Prev Build on main (#8072021767)
  • Next Build on main (#8084627729)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc