Skip to content

Commit

Permalink
Merge pull request #1250 from odilitime/fix-ll
Browse files Browse the repository at this point in the history
fix: Fix local_llama key warning
  • Loading branch information
monilpat authored Dec 19, 2024
2 parents 800cd0d + a6f4bf6 commit 2d04d80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,11 @@ export async function loadCharacters(
export function getTokenForProvider(
provider: ModelProviderName,
character: Character
) {
):string {
switch (provider) {
// no key needed for llama_local
case ModelProviderName.LLAMALOCAL:
return ''
case ModelProviderName.OPENAI:
return (
character.settings?.secrets?.OPENAI_API_KEY ||
Expand Down

0 comments on commit 2d04d80

Please sign in to comment.