Skip to content

Commit

Permalink
Fix Groq
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaynarisetti committed May 12, 2024
1 parent 374e2d9 commit 13c1d64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Follow these steps to set up OpenGlass:
npm install
```

2. Add API keys for Grok and OpenAI in the `keys.ts` file located at https://github.com/BasedHardware/OpenGlass/blob/main/sources/keys.ts.
2. Add API keys for groq and OpenAI in the `keys.ts` file located at https://github.com/BasedHardware/OpenGlass/blob/main/sources/keys.ts.

3. For Ollama, self-host the REST API from the repository at https://github.com/ollama/ollama and add the URL to the `keys.ts` file.

Expand Down
2 changes: 1 addition & 1 deletion sources/keys.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const keys = {
grok: '',
groq: '',
ollama: '',
openai: ''
};
2 changes: 1 addition & 1 deletion sources/modules/groq-llama3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from "axios";
import { keys } from "../keys";

const headers = {
'Authorization': `Bearer ${keys.grok}`
'Authorization': `Bearer ${keys.groq}`
};

export async function groqRequest(systemPrompt: string, userPrompt: string) {
Expand Down

0 comments on commit 13c1d64

Please sign in to comment.