-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
003657a
commit 7d6db31
Showing
18 changed files
with
78 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import { | ||
CompletionCreateParamsExcludingModelAndMessages, | ||
CompletionModel, | ||
CompletionProvider, | ||
GroqCompletionCreateParamsExcludingModelAndMessages, | ||
} from '../types'; | ||
|
||
export const COMPLETION_MODEL_IDS: Record<CompletionModel, string> = { | ||
llama: 'llama3-70b-8192', | ||
'gpt-4o-mini': 'gpt-4o-mini', | ||
'llama-3-70b': 'llama3-70b-8192', | ||
'gpt-4o': 'gpt-4o-2024-08-06', | ||
}; | ||
|
||
export const COMPLETION_PROVIDER_MODEL_MAP: Record< | ||
CompletionProvider, | ||
CompletionModel[] | ||
> = { | ||
groq: ['llama'], | ||
openai: ['gpt-4o-mini'], | ||
groq: ['llama-3-70b'], | ||
openai: ['gpt-4o'], | ||
}; | ||
|
||
export const DEFAULT_COMPLETION_MODEL: CompletionModel = 'llama'; | ||
export const DEFAULT_COMPLETION_MODEL: CompletionModel = 'llama-3-70b'; | ||
export const DEFAULT_COMPLETION_PROVIDER: CompletionProvider = 'groq'; | ||
|
||
export const COMPLETION_API_ENDPOINT: Record<CompletionProvider, string> = { | ||
groq: 'https://api.groq.com/openai/v1/chat/completions', | ||
openai: 'https://api.openai.com/v1/chat/completions', | ||
}; | ||
|
||
export const DEFAULT_COMPLETION_CREATE_PARAMS: GroqCompletionCreateParamsExcludingModelAndMessages = | ||
export const DEFAULT_COMPLETION_CREATE_PARAMS: CompletionCreateParamsExcludingModelAndMessages = | ||
{ | ||
temperature: 0.3, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters