Skip to content

Commit

Permalink
update sdk versions, use openai for gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
piEsposito committed Dec 27, 2024
1 parent 6d56444 commit 03543a2
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 1,017 deletions.
6 changes: 6 additions & 0 deletions examples/gemini_.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@ async def async_ai_main():


if __name__ == "__main__":
import os

from dotenv import load_dotenv

load_dotenv()
if os.environ.get("GOOGLE_API_KEY"):
os.environ["OPENAI_API_KEY"] = os.environ["GOOGLE_API_KEY"]
if os.environ.get("GOOGLE_OPENAI_BASE_URL"):
os.environ["OPENAI_BASE_URL"] = os.environ["GOOGLE_OPENAI_BASE_URL"]
main()
asyncio.run(async_ai_main())
Loading

0 comments on commit 03543a2

Please sign in to comment.