mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 01:12:15 +00:00
zen: trial
This commit is contained in:
parent
09bc8d9ca4
commit
da2099137a
1 changed files with 3 additions and 4 deletions
|
|
@ -296,10 +296,9 @@ export async function handler(
|
|||
retry: RetryOptions,
|
||||
) {
|
||||
const provider = (() => {
|
||||
// temporarily commment out
|
||||
//if (isTrial) {
|
||||
// return modelInfo.providers.find((provider) => provider.id === modelInfo.trial!.provider)
|
||||
//}
|
||||
if (isTrial) {
|
||||
return modelInfo.providers.find((provider) => provider.id === modelInfo.trial!.provider)
|
||||
}
|
||||
|
||||
if (retry.retryCount === MAX_RETRIES) {
|
||||
return modelInfo.providers.find((provider) => provider.id === modelInfo.fallbackProvider)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue