mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
chore(ci): update test to new rates
This commit is contained in:
parent
09c03b9df0
commit
c0e2c58c03
1 changed files with 3 additions and 3 deletions
|
|
@ -24,8 +24,8 @@ describe('getValueKey', () => {
|
|||
|
||||
describe('getMultiplier', () => {
|
||||
it('should return the correct multiplier for a given valueKey and tokenType', () => {
|
||||
expect(getMultiplier({ valueKey: '8k', tokenType: 'prompt' })).toBe(3);
|
||||
expect(getMultiplier({ valueKey: '8k', tokenType: 'completion' })).toBe(6);
|
||||
expect(getMultiplier({ valueKey: '8k', tokenType: 'prompt' })).toBe(30);
|
||||
expect(getMultiplier({ valueKey: '8k', tokenType: 'completion' })).toBe(60);
|
||||
});
|
||||
|
||||
it('should return defaultRate if tokenType is provided but not found in tokenValues', () => {
|
||||
|
|
@ -33,7 +33,7 @@ describe('getMultiplier', () => {
|
|||
});
|
||||
|
||||
it('should derive the valueKey from the model if not provided', () => {
|
||||
expect(getMultiplier({ tokenType: 'prompt', model: 'gpt-4-some-other-info' })).toBe(3);
|
||||
expect(getMultiplier({ tokenType: 'prompt', model: 'gpt-4-some-other-info' })).toBe(30);
|
||||
});
|
||||
|
||||
it('should return 1 if only model or tokenType is missing', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue