nova-api/api/providers/azure.py

15 lines
595 B
Python
Raw Normal View History

2023-10-06 23:05:38 +02:00
from .helpers import utils
2023-10-14 01:15:59 +02:00
ORGANIC = False # If all OpenAI endpoints should be used for the provider. If false, only a chat completions are used for this provider.
2023-10-12 00:03:15 +02:00
ENDPOINT = 'https://nova-00001.openai.azure.com' # (Important: read below) The endpoint for the provider.
#! IMPORTANT: If this is an ORGANIC provider, this should be the endpoint for the API with anything BEFORE the "/v1".
2023-10-06 23:05:38 +02:00
MODELS = [
'gpt-3.5-turbo',
'gpt-3.5-turbo-16k',
'gpt-4',
'gpt-4-32k'
]
async def chat_completion(**payload):
2023-10-14 01:15:59 +02:00
return await utils.azure_chat_completion(ENDPOINT, 'azure-nva1', payload)