为 LLM Providers 添加集成测试 #5081
BrandonStudio
started this conversation in
RFC | 特性开发
Replies: 1 comment 1 reply
-
感觉合理的,回头看下怎么加 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
目前,所有的 LLM Provider 都是单元测试,一个函数一个函数地测,测这个函数的时候就会把其它的函数都mock掉,这样对集成之后的逻辑没有验证。
提议增加集成测试,对每一个 Provider,只将
globalThis.fetch
mock掉,使用真实环境下的响应进行测试。Beta Was this translation helpful? Give feedback.
All reactions