kevinthedang / discord-ollama

Discord Bot that utilizes Ollama to interact with any Large Language Models to talk with users and allow them to host/create their own models.
Creative Commons Attribution 4.0 International
89 stars 11 forks source link

Environment Variable Validation #104

Closed kevinthedang closed 1 month ago

kevinthedang commented 3 months ago

Issue

Solution

References

export const Keys = { clientToken: getEnvVar('CLIENT_TOKEN'), model: getEnvVar('MODEL'), clientUid: getEnvVar('CLIENT_UID'), ipAddress: getEnvVar('OLLAMA_IP'), portAddress: getEnvVar('OLLAMA_PORT'), } as const // readonly keys

export default Keys

JT2M0L3Y commented 3 months ago

@kevinthedang it appears that the guild_id environment variable was not fully removed from docker dependency. Opening another issue, #108.