support azure via openai demo

This commit is contained in:
geekan 2023-07-07 13:57:42 +08:00
parent bcfe49eb2f
commit e712a4168f
8 changed files with 48 additions and 130 deletions

View file

@ -1,15 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2023/5/16 10:12
@Author : alexanderwu
@File : test_azure_gpt_api.py
"""
from metagpt.provider import AzureGPTAPI
def test_azure_gpt_api():
api = AzureGPTAPI()
rsp = api.ask('hello')
assert len(rsp) > 0