Fix: add image2text issue. (#5431)

### What problem does this PR solve?

#5356

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-02-27 14:06:49 +08:00
committed by GitHub
parent 5beb022ee1
commit 4c9a3e918f
2 changed files with 2 additions and 1 deletions

View File

@ -162,6 +162,7 @@ class GptV4(Base):
)
return res.choices[0].message.content.strip(), res.usage.total_tokens
class AzureGptV4(Base):
def __init__(self, key, model_name, lang="Chinese", **kwargs):
api_key = json.loads(key).get('api_key', '')