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

Support OpenAi SDK ^1.1.0 #420

Closed
collindutter opened this issue Nov 6, 2023 · 7 comments
Closed

Support OpenAi SDK ^1.1.0 #420

collindutter opened this issue Nov 6, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@collindutter
Copy link
Member

No description provided.

@collindutter collindutter added the enhancement New feature or request label Nov 6, 2023
@collindutter collindutter self-assigned this Nov 6, 2023
@zepef
Copy link

zepef commented Nov 7, 2023

Hello,

Supporting v1.1.1 would be much appreciated. I am getting now:

in OpenAiChatPromptDriver
api_base: str = field(default=openai.api_base, kw_only=True)
AttributeError: module 'openai' has no attribute 'api_base'. Did you mean: 'api_type'?

I suspect evolution of SDK being the cause for this error.

Best regards,

Pierre-Emmanuel

@collindutter
Copy link
Member Author

Hi @zepef apologies for this issue, we will be making a release today that locks openai at ^0.28 until we finish this issue (soon).

@collindutter
Copy link
Member Author

@zepef v0.19.4 has been released which should address this issue.

This was referenced Nov 7, 2023
@zepef
Copy link

zepef commented Nov 8, 2023 via email

@zepef
Copy link

zepef commented Nov 8, 2023 via email

@collindutter
Copy link
Member Author

Hi @zepef thanks for trying Griptape and for the kind words! If you install 0.19.4 it will require openai ^0.28. Once this PR is merged you will be able to use openai``^1.1.1. We'll keep you updated!

@zepef
Copy link

zepef commented Nov 9, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants