-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some resources for demo clarity #20
Conversation
LOGAF Level 3 - /home/runner/work/GenossGPT/GenossGPT/demo/main.py
Example: class SessionState:
def __init__(self):
self.state = {}
def get(self, key, default=None):
return self.state.get(key, default)
def set(self, key, value):
self.state[key] = value
LOGAF Level 3 - /home/runner/work/GenossGPT/GenossGPT/demo/constants/model_configs.py
Example: class OpenAIConfigurator:
def __init__(self, api_key, endpoint_url):
self.api_key = api_key
self.endpoint_url = endpoint_url
def configure(self):
openai.api_key = self.api_key
openai.api_base = self.endpoint_url
LOGAF Level 3 - /home/runner/work/GenossGPT/GenossGPT/demo/widgets/genoss_backend_connection.py
Example: def display_message_if_failing_to_access_genoss() -> str:
try:
SETTINGS.ping_genoss_backend()
return ''
except RequestException:
return 'The demo could not access the Genoss backend.'
🔄🔒🔧 Powered by Code Review GPT |
No description provided.