Skip to content

Commit

Permalink
add ignored provider - chatbase
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin-jun-xiang committed Nov 9, 2023
1 parent 4d962d2 commit a5d1c05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docGPT/docGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def _call(
return g4f.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": prompt}],
provider=provider
provider=provider,
ignored=["ChatBase"]
)
except Exception as e:
module_logger.info(f'{__file__}: call gpt4free error - {e}')
Expand All @@ -236,7 +237,8 @@ async def _test_provider(self, provider: g4f.Provider) -> str:
await g4f.ChatCompletion.create_async(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": 'Hi, this is test'}],
provider=provider
provider=provider,
ignored=["ChatBase"]
)
return provider_name
except Exception as e:
Expand Down

0 comments on commit a5d1c05

Please sign in to comment.