Skip to content

Commit

Permalink
chore: linting fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartleeks committed Oct 9, 2024
1 parent 7ecf419 commit e14983e
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/aoai-api-simulator/src/aoai_api_simulator/generator/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,11 @@ async def azure_openai_embedding(context: RequestContext) -> Response | None:
{
"error": {
"code": "OperationNotSupported",
"message": f"The embeddings operation does not work with the specified model, {deployment_name}. "
+ "Please choose different model and try again. "
+ "You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993.",
"message": "The embeddings operation does not work with the specified model, "
+ deployment_name
+ ". Please choose different model and try again. "
+ "You can learn more about which models can be used with each operation here: "
+ "https://go.microsoft.com/fwlink/?linkid=2197993.",
}
}
),
Expand Down Expand Up @@ -532,9 +534,11 @@ async def azure_openai_completion(context: RequestContext) -> Response | None:
{
"error": {
"code": "OperationNotSupported",
"message": f"The completions operation does not work with the specified model, {deployment_name}. "
+ "Please choose different model and try again. "
+ "You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993.",
"message": "The completions operation does not work with the specified model, "
+ deployment_name
+ ". Please choose different model and try again. "
+ "You can learn more about which models can be used with each operation here: "
+ "https://go.microsoft.com/fwlink/?linkid=2197993.",
}
}
),
Expand Down Expand Up @@ -593,9 +597,11 @@ async def azure_openai_chat_completion(context: RequestContext) -> Response | No
{
"error": {
"code": "OperationNotSupported",
"message": f"The chatCompletion operation does not work with the specified model, {deployment_name}. "
+ "Please choose different model and try again. "
+ "You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993.",
"message": "The chatCompletion operation does not work with the specified model, "
+ deployment_name
+ ". Please choose different model and try again. "
+ "You can learn more about which models can be used with each operation here: "
+ "https://go.microsoft.com/fwlink/?linkid=2197993.",
}
}
),
Expand Down

0 comments on commit e14983e

Please sign in to comment.