Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Yash-2707
Copy link
Contributor

The _create_client method now handles both synchronous and asynchronous client creation, reducing code duplication. Added a check for the presence of an API key and raise a ValueError if it's missing.
Added a get_model_list method to fetch available models, which can be useful for debugging or providing model options to users.
Now uses os.getenv("AZURE_OPENAI_API_VERSION", "2024-02-01") to allow for easy updates to the API version without changing the code.

The _create_client method now handles both synchronous and asynchronous client creation, reducing code duplication.
Added a check for the presence of an API key and raise a ValueError if it's missing.
 Added a get_model_list method to fetch available models, which can be useful for debugging or providing model options to users.
@junruxiong junruxiong merged commit ac74aa2 into StarmoonAI:main Oct 25, 2024
@junruxiong
Copy link
Contributor

Thanks for your contribution!

@github-actions
Copy link

πŸ‘ Well done @Yash-2707! Two PRs merged already! πŸŽ‰πŸ₯³

With your second PR, you're on a roll, and your contributions are already making a difference. 🌟
Looking forward to seeing even more contributions from you. The developer onboarding lead: @junruxiong is here if you need any help! Keep up the great work! πŸš€

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

Successfully merging this pull request may close these issues.

2 participants