Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 29, 2025

The example code for OpenAIModelConfiguration used the Azure OpenAI deployment naming convention (gpt-35-turbo) instead of the OpenAI API model name (gpt-3.5-turbo).

Changes

  • Updated samples/evaluation_samples_common.py to use correct OpenAI model name with dots instead of hyphens

Before:

oai_model_config = OpenAIModelConfiguration(
    api_key="my-oai-api-key", 
    base_url="https://api.openai.com/v1", 
    model="gpt-35-turbo"  # Azure naming convention
)

After:

oai_model_config = OpenAIModelConfiguration(
    api_key="my-oai-api-key", 
    base_url="https://api.openai.com/v1", 
    model="gpt-3.5-turbo"  # OpenAI naming convention
)

Note: gpt-35-turbo is valid for Azure OpenAI deployments, but OpenAI's API uses gpt-3.5-turbo.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • scanning-api.github.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Typo in example code snippet</issue_title>
<issue_description>### Type of issue

Typo

Description

In the following code block:

from azure.ai.evaluation._model_configurations import OpenAIModelConfiguration

   oai_model_config = OpenAIModelConfiguration(
       api_key="my-oai-api-key", base_url="https://api.openai.com/v1", model="gpt-35-turbo"
   )

is model="gpt-35-turbo" a typo? Is "gpt-3.5-turbo" expected?

Page URL

https://learn.microsoft.com/en-us/python/api/azure-ai-evaluation/azure.ai.evaluation.openaimodelconfiguration?view=azure-python

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-python/blob/main/docs-ref-autogen/azure-ai-evaluation/azure.ai.evaluation.OpenAIModelConfiguration.yml

Document Version Independent Id

3bf5ef49-29f6-407a-2d47-5eb28dab95af

Platform Id

9758c592-eb24-7da7-b203-d0bbd855d89d

Article author

@lmazuel

Metadata

  • ID: b318b7d3-716a-a454-9327-da29dc6b4c57
  • PlatformId: 9758c592-eb24-7da7-b203-d0bbd855d89d </issue_description>

Comments on the Issue (you are @copilot in this section)

@swathipil Hi @davidydu - Thanks for opening an issue. We'll take a look asap! @singankit Thanks @davidydu for opening the issue. It is certainly a typo. Will work on fixing it.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: luigiw <1483379+luigiw@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix typo in example code snippet for model configuration Fix OpenAI model name in OpenAIModelConfiguration example Dec 29, 2025
Copilot AI requested a review from luigiw December 29, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typo in example code snippet

2 participants