From fd4d231780d8d917b65de2624867825b4caafd55 Mon Sep 17 00:00:00 2001 From: geekan Date: Mon, 3 Jul 2023 11:32:01 +0800 Subject: [PATCH] remove azure hello world example --- examples/azure_hello_world.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 examples/azure_hello_world.py diff --git a/examples/azure_hello_world.py b/examples/azure_hello_world.py deleted file mode 100644 index 4c0dc01eb..000000000 --- a/examples/azure_hello_world.py +++ /dev/null @@ -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()