Shawn Fang

Results 20 comments of Shawn Fang

> > Looks great! I left a couple nitpicky comments but otherwise the added tests provide good coverage of the new feature! > > /cc @kristapratico, @mssfang, @joseharriaga did you...

- Consider adding a solution on how to timeout on the client level.

@mkemmerz You can find a sample in our repo that shows how to use Azure Search extension in the OpenAI SDK. https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/ChatCompletionsWithYourData.java#L59

@XhstormR Thank you bring it up. The input prompt fall into this [Example scenarios](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/content-filter?tabs=warning%2Cpython#example-scenario-an-input-prompt-containing-content-that-is-classified-at-a-filtered-category-and-severity-level-is-sent-to-the-completions-api) in the Microsoft Doc. We have a class [ContentFilterResultDetailsForPrompt ](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ContentFilterResultDetailsForPrompt.java) that you can use in deserialization...

@XhstormR That is strange, I use the same sample and consistently produce status code 400, wondering which region and model version you are using. ```txt 2024-04-04 15:21:50.511 [main] [DEBUG] com.azure.core.implementation.ReflectionUtils...

Hi, @mattgotteiner What model are you using? I won't be able to reproduce the error with model "text-embedding-ada-002" in both of Azure OpenAI and OpenAI clients

Thank you for reporting this issue. @hind214875 Can you try update pom dependency as below? ``` com.azure azure-ai-openai 1.0.0-beta.6 com.azure azure-search-documents 11.6.0-beta.7 com.azure azure-core-serializer-json-jackson ```

> Hi [mssfang](https://github.com/mssfang)! Thank you for your reply, but unfortunately it is still not working. Thanks for the try out. Is possible we can have a sample code that can...