nova-api/api/providers/azure.py

16 lines
632 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-15 22:35:18 +02:00
ENDPOINT = 'https://nova-00003.openai.azure.com' # (Important: read below) The endpoint for the provider.
2023-10-12 00:03:15 +02:00
#! 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',
2023-10-15 22:35:18 +02:00
# 'gpt-3.5-turbo-16k',
# 'gpt-3.5-turbo-instruct'
# 'gpt-4',
# 'gpt-4-32k'
2023-10-06 23:05:38 +02:00
]
async def chat_completion(**payload):
2023-10-14 01:15:59 +02:00
return await utils.azure_chat_completion(ENDPOINT, 'azure-nva1', payload)