AIAnytime / AIAnytime/LIDA-Demo-Streamlit-App

Name error after running the code.

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
31
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,
Thank you for providing with amazing solution on new modules.
The problem I am facing with your code is :
NameError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
3 from llmx.generators.text.textgen import sanitize_provider
4
----> 5 lida = Manager(text_gen = llm("openai", api_key='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')) # !! api key
6 textgen_config = TextGenerationConfig(n=1, temperature=0.5, model="gpt-3.5-turbo-0301", use_cache=True)
7

[/usr/local/lib/python3.10/dist-packages/llmx/generators/text/textgen.py](https://localhost:8080/#) in llm(provider, **kwargs)
50
51 if provider.lower() == "openai":
---> 52 return OpenAITextGenerator(**kwargs)
53 elif provider.lower() == "palm":
54 return PalmTextGenerator(**kwargs)

NameError: name 'OpenAITextGenerator' is not defined.

Can you please help me resolve.
I have tried every possible solution for this error.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.