mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-04 05:12:37 +02:00
support azure via openai demo
This commit is contained in:
parent
bcfe49eb2f
commit
e712a4168f
8 changed files with 48 additions and 130 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue