Results 40 comments of Saverio Proto

I think the following can confirm that this is **not** a LangChain bug: ``` In [40]: hyde_prompt_text = """You will be given a sentence. ...: If the sentence is a...

@pieroit I know it does not make sense to use `{input}` when not using a chain. But the point is another one: `{input} --> {output}` would be a valid completion....

@pieroit you had a correct hint about chat and completion models. https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/chatgpt?pivots=programming-language-chat-completions The `gpt-35-turbo` model that I am using is a "Chat model", so it might return a `` as...

I confirm that I solved the problem of the trailing ``. My root cause was using `langchain.llms.AzureOpenAI` with the `gpt-35-turbo` model that is a Chat model. If you want to...

Only the `gpt-3.5-turbo` and `gpt-4` models are chat models and support using the Chat API via `llm = AzureChatOpenAI(......)`. The other models are completion models, you should use the Completion...

@vincentteyssier if you get the error `openai.error.InvalidRequestError: Resource not found` it means that the API call is returning a HTTP 404. Please double check the model_name and deployment_name and the...

The number `0301` is the version of the model, not the Azure API version. The Azure API version is `2023-03-15-preview`

> Funny I get this issue only with AzureChatOpenAI, but not with AzureOpenAI It is because only `AzureChatOpenAI` requires `openai_api_version`. https://github.com/hwchase17/langchain/blob/5cfa72a130f675c8da5963a11d416f553f692e72/langchain/chat_models/azure_openai.py#L46 Look at `AzureOpenAI`, it wants only the `deployment_name`: https://github.com/hwchase17/langchain/blob/5cfa72a130f675c8da5963a11d416f553f692e72/langchain/llms/openai.py#L571-L588...

Related issue: https://github.com/openai/openai-python/issues/411

@Pilosite : Can you please fix the Markdown formatting of the above comment ? Thanks