dkosarevsky / ai-talks Goto Github PK
View Code? Open in Web Editor NEWAI Talks - ChatGPT Assistant via Streamlit
Home Page: https://agi-talks.streamlit.app
License: MIT License
AI Talks - ChatGPT Assistant via Streamlit
Home Page: https://agi-talks.streamlit.app
License: MIT License
exception <<...You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 ...>> at line 15 of chat_gpt.py >> completion = openai.ChatCompletion.create(...
Возможно имеет смысл отключить автоматическую генерацию аудио ответа. Лучше выбор сделать, "Тип вывода": "Аудио", "Аудио и текст", "Только текст".
Мне, например, аудио не нужно, а гугловый АПИ зря дергается. Думаю не мне одному требуется только текст.
It may make sense to disable the automatic generation of the audio response. It is better to make a choice, "Output type": "Audio", "Audio and text", "Text only".
For example, I don't need audio, and the Google API is twitching in vain. I think I'm not the only one who needs only the text.
File "/app/ai-talks/ai_talks/chat.py", line 80
match role_kind:
^
SyntaxError: invalid syntax
after installing all requirements and adding the secret api file in .streamlit also in ai_talks.streamlit i got this error:
No secrets files found. Valid paths for a secrets.toml file are: C:\Users\gfara.streamlit\secrets.toml, D:\1\AI-Talks-main\AI-Talks-main\ai_talks.streamlit\secrets.toml
AttributeError: st.secrets has no attribute "api_credentials". Did you forget to add it to secrets.toml or the app settings on Streamlit Cloud? More info: https://docs.streamlit.io/streamlit-cloud/get-started/deploy-an-app/connect-to-data-sources/secrets-management
Traceback:
File "C:\Users\gfara\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "D:\1\AI-Talks-main\AI-Talks-main\ai_talks\chat.py", line 6, in <module>
from src.utils.conversation import get_user_input, show_chat_buttons, show_conversation
File "D:\1\AI-Talks-main\AI-Talks-main\ai_talks\src\utils\conversation.py", line 14, in <module>
phind.cf_clearance = st.secrets.api_credentials.phind_cf_clearance
File "C:\Users\gfara\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\secrets.py", line 296, in __getattr__
raise AttributeError(_missing_attr_error_message(key))
When I attempted to try your Chat I got this error message:
Incorrect API key provided: sk-WRQsP***************************************xQBt. You can find your API key at https://platform.openai.com/account/api-keys.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.