Skip to content

Commit

Permalink
Fix env var passing (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon authored Oct 15, 2024
1 parent 25983d1 commit 04617a8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions trustgraph-flow/trustgraph/model/text_completion/azure/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ def add_args(parser):

parser.add_argument(
'-e', '--endpoint',
default=default_endpoint,
help=f'LLM model endpoint'
)

parser.add_argument(
'-k', '--token',
default=default_token,
help=f'LLM model token'
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def add_args(parser):

parser.add_argument(
'-k', '--api-key',
default=default_api_key,
help=f'Claude API key'
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def add_args(parser):

parser.add_argument(
'-k', '--api-key',
default=default_api_key,
help=f'Cohere API key'
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def add_args(parser):

parser.add_argument(
'-k', '--api-key',
default=default_api_key,
help=f'GoogleAIStudio API key'
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def add_args(parser):

parser.add_argument(
'-k', '--api-key',
default=default_api_key,
help=f'OpenAI API key'
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
default_region = 'us-central1'
default_temperature = 0.0
default_max_output = 8192
default_private_key = os.getenv("VERTEXAI_KEY")
default_private_key = "private.json"

class Processor(ConsumerProducer):

Expand Down

0 comments on commit 04617a8

Please sign in to comment.