mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
hotfix azure (#6806)
This commit is contained in:
parent
003ebc0ded
commit
b95840db0c
@ -102,3 +102,9 @@ class LLMConfig(BaseModel):
|
||||
os.environ['OR_SITE_URL'] = self.openrouter_site_url
|
||||
if self.openrouter_app_name:
|
||||
os.environ['OR_APP_NAME'] = self.openrouter_app_name
|
||||
|
||||
# Assign an API version for Azure models
|
||||
# While it doesn't seem required, the format supported by the API without version seems old and will likely break.
|
||||
# Azure issue: https://github.com/All-Hands-AI/OpenHands/issues/6777
|
||||
if self.model.startswith('azure') and self.api_version is None:
|
||||
self.api_version = '2024-08-01-preview'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user