You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I faced a problem with phidata when using GPTCache. I can't integarate GPTCache with phidata.
Describe the solution you'd like.
I can use the llm in GPTCache and passed it in phidata. Example below:
fromphi.assistantimportAssistantfromphi.llm.openaiimportOpenAIChatfromphi.tools.yfinanceimportYFinanceToolsfromgptcacheimportcachefromgptcache.adapterimportopenaiassistant=Assistant(
cache=cache.init(), # this line for cachellm=openai(model="gpt-4o"), # this line for llmtools=[YFinanceTools(stock_price=True, analyst_recommendations=True, company_info=True, company_news=True)],
show_tool_calls=True,
markdown=True,
)
assistant.print_response("What is the stock price of NVDA")
assistant.print_response("Write a comparison between NVDA and AMD, use all tools available.")
Describe an alternate solution.
No response
Anything else? (Additional Context)
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I faced a problem with phidata when using GPTCache. I can't integarate GPTCache with phidata.
Describe the solution you'd like.
I can use the llm in GPTCache and passed it in phidata. Example below:
Describe an alternate solution.
No response
Anything else? (Additional Context)
No response
The text was updated successfully, but these errors were encountered: