chore(vendor): import pi 1.3.0
Imported as a linear vendor commit so forge rebases do not replay the upstream root tree. git-subtree-dir: third_party/pi git-subtree-split: 71023aec1546d6d677a65669c5665c0927ce0dd0
This commit is contained in:
@@ -29,18 +29,6 @@ it("uses API-equivalent reference costs for Coding Plan models", () => {
|
||||
cacheRead: 0.26,
|
||||
cacheWrite: 0,
|
||||
});
|
||||
expect(getBuiltinModel("zai-coding-cn", "glm-5.1").cost).toEqual({
|
||||
input: 1.4,
|
||||
output: 4.4,
|
||||
cacheRead: 0.26,
|
||||
cacheWrite: 0,
|
||||
});
|
||||
expect(getBuiltinModel("zai-coding-cn", "glm-5v-turbo").cost).toEqual({
|
||||
input: 1.2,
|
||||
output: 4,
|
||||
cacheRead: 0.24,
|
||||
cacheWrite: 0,
|
||||
});
|
||||
for (const provider of ["zai", "zai-coding-cn"] as const) {
|
||||
expect(getBuiltinModel(provider, "glm-5.3").cost).toEqual({
|
||||
input: 1.4,
|
||||
@@ -54,7 +42,9 @@ it("uses API-equivalent reference costs for Coding Plan models", () => {
|
||||
it("keeps zero costs for Coding Plan models without a matching API price", () => {
|
||||
const zeroCost = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
|
||||
|
||||
expect(getBuiltinModel("zai", "glm-5.2-highspeed").cost).toEqual(zeroCost);
|
||||
|
||||
for (const provider of ["zai", "zai-coding-cn"] as const) {
|
||||
expect(getBuiltinModel(provider, "glm-5.2-highspeed").cost).toEqual(zeroCost);
|
||||
expect(getBuiltinModel(provider, "glm-5.3-highspeed").cost).toEqual(zeroCost);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user