@Mohamed Hussein Thanks for your reply.
.
I see that the issue you are encountering is already documented:
.
More info below:
When I ask GPT-4 which model it's running, it tells me it's running GPT-3. Why does this happen?
Azure OpenAI models (including GPT-4) being unable to correctly identify what model is running is expected behavior.
Why does this happen?
Ultimately, the model is performing next token prediction in response to your question. The model doesn't have any native ability to query what model version is currently being run to answer your question. To answer this question, you can always go to Azure AI Foundry > Management > Deployments > and consult the model name column to confirm what model is currently associated with a given deployment name.
.
The questions, What model are you running?
or What is the latest model from OpenAI?
produce similar quality results to asking the model what the weather will be today. It might return the correct result, but purely by chance. On its own, the model has no real-world information other than what was part of its training/training data. In the case of GPT-4, as of August 2023 the underlying training data goes only up to September 2021. GPT-4 wasn't released until March 2023, so barring OpenAI releasing a new version with updated training data, or a new version that is fine-tuned to answer those specific questions, it's expected behavior for GPT-4 to respond that GPT-3 is the latest model release from OpenAI.
.
Workaround 1:
If you wanted to help a GPT based model to accurately respond to the question what model are you running?
, you would need to provide that information to the model through techniques like prompt engineering of the model's system message, Retrieval Augmented Generation (RAG) which is the technique used by Azure OpenAI on your data where up-to-date information is injected to the system message at query time, or via fine-tuning where you could fine-tune specific versions of the model to answer that question in a certain way based on model version.
.
Workaround 2:
Since, you are using gpt-4o-mini
model, You could try to update the System Prompt message as below:
You are a helpful AI assistant with knowledge cutoff of Oct 2023
Hope this answers.