griptape-ai / griptape

Modular Python framework for AI agents and workflows with chain-of-thought reasoning, tools, and memory.
https://www.griptape.ai
Apache License 2.0
1.88k stars 153 forks source link

Support OpenAi SDK ^1.1.0 #420

Closed collindutter closed 9 months ago

zepef commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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

zepef commented 9 months ago

Hello Collin,

I will try it right away. I am really impressed by griptape which I am using to create a medical chatbot. I will keep you updated.

All the best !

Pierre-Emmanuel


De : Collin Dutter @.> Envoyé : mardi 7 novembre 2023 19:53 À : griptape-ai/griptape @.> Cc : Pierre-Emmanuel FEGA @.>; Mention @.> Objet : Re: [griptape-ai/griptape] Support OpenAi SDK ^1.1.0 (Issue #420)

@zepefhttps://github.com/zepef v0.19.4https://github.com/griptape-ai/griptape/releases/tag/v0.19.4 has been released which should address this issue.

— Reply to this email directly, view it on GitHubhttps://github.com/griptape-ai/griptape/issues/420#issuecomment-1799192582, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFKP5MB4KCXHNWIS6QRS2LYDJRPZAVCNFSM6AAAAAA7AH7H4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJZGE4TENJYGI. You are receiving this because you were mentioned.Message ID: @.***>

zepef commented 9 months ago

Collin,

In fact it is an issue with OpenAI 1.1.1 because I get:

ImportError: cannot import name 'OpenAI' from 'openai' (E:\Users\clt\anaconda3\envs\w2\lib\site-packages\openai__init__.py)

I guess I'll wait until it is supported by griptape because I coded STT/TTS for my chatbot using new OpenAI SDK.

Regards,

Pierre-Emmanuel


De : Collin Dutter @.> Envoyé : mardi 7 novembre 2023 19:53 À : griptape-ai/griptape @.> Cc : Pierre-Emmanuel FEGA @.>; Mention @.> Objet : Re: [griptape-ai/griptape] Support OpenAi SDK ^1.1.0 (Issue #420)

@zepefhttps://github.com/zepef v0.19.4https://github.com/griptape-ai/griptape/releases/tag/v0.19.4 has been released which should address this issue.

— Reply to this email directly, view it on GitHubhttps://github.com/griptape-ai/griptape/issues/420#issuecomment-1799192582, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFKP5MB4KCXHNWIS6QRS2LYDJRPZAVCNFSM6AAAAAA7AH7H4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJZGE4TENJYGI. You are receiving this because you were mentioned.Message ID: @.***>

collindutter commented 9 months ago

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 commented 9 months ago

Collin,

Thank you so much. I am very excited to check it out!

Best regards,

Pierre-Emmanuel


De : Collin Dutter @.> Envoyé : mercredi 8 novembre 2023 19:33 À : griptape-ai/griptape @.> Cc : Pierre-Emmanuel FEGA @.>; Mention @.> Objet : Re: [griptape-ai/griptape] Support OpenAi SDK ^1.1.0 (Issue #420)

Hi @zepefhttps://github.com/zepef thanks for trying Griptape and for the kind words! If you install 0.19.4 it will require openai ^0.28. Once this PRhttps://github.com/griptape-ai/griptape/pull/422 is merged you will be able to use openai``^1.1.1. We'll keep you updated!

— Reply to this email directly, view it on GitHubhttps://github.com/griptape-ai/griptape/issues/420#issuecomment-1802250798, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFKP5NOKRQ3S773DCS3XADYDOX5DAVCNFSM6AAAAAA7AH7H4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGI2TANZZHA. You are receiving this because you were mentioned.Message ID: @.***>