Hello Banarase, Soham Rajendra (T SSP DAB-DE),
According to the Microsoft Learn document, the comments in the example code mention that fine-tuning the turbo model requires at least API version 2023-12-01-preview
. You can attempt to modify the api_version
as follows.
import os
from openai import AzureOpenAI
client = AzureOpenAI(
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT"),
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
api_version="2023-12-01-preview" # This API version or later is required to access fine-tuning for turbo/babbage-002/davinci-002
)
Best regards,
Charlie
If you find my response helpful, please consider accepting this answer and voting 'yes' to support the community. Thank you!