Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "api_version": self.api_version to llms.openai #18048

Open
gmirc12 opened this issue Mar 7, 2025 · 2 comments
Open

Add "api_version": self.api_version to llms.openai #18048

gmirc12 opened this issue Mar 7, 2025 · 2 comments

Comments

@gmirc12
Copy link

gmirc12 commented Mar 7, 2025

https://github.com/run-llama/llama_index/blob/d3a861fa9a076eebb8fda3991fccda5ff1f85320/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/base.py#L422C8-L429C10

Here you should add: "api_version": self.api_version, because eitherwise the api_version is not used when calling functions.

@logan-markewich
Copy link
Collaborator

API version is only needed for azure right?

Its used here:

@gmirc12
Copy link
Author

gmirc12 commented Mar 7, 2025

It could be used also for normal openAi, depending on if you have a custom deployment.

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

No branches or pull requests

2 participants