mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
remove azure hello world example
This commit is contained in:
parent
31fe469ddf
commit
fd4d231780
1 changed files with 0 additions and 20 deletions
|
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@Time : 2023/5/25 16:24
|
||||
@Author : alexanderwu
|
||||
@File : azure_hello_world.py
|
||||
"""
|
||||
from metagpt.logs import logger
|
||||
from metagpt.provider import AzureGPTAPI
|
||||
|
||||
|
||||
def azure_gpt_api():
|
||||
"""Currently, Azure only supports synchronous mode."""
|
||||
api = AzureGPTAPI()
|
||||
logger.info(api.ask('write python hello world.'))
|
||||
logger.info(api.completion([{'role': 'user', 'content': 'hello'}]))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
azure_gpt_api()
|
||||
Loading…
Add table
Add a link
Reference in a new issue