mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-11 00:02:37 +02:00
Fix env var passing (#120)
This commit is contained in:
parent
25983d1557
commit
04617a81f7
6 changed files with 7 additions and 1 deletions
|
|
@ -208,11 +208,13 @@ class Processor(ConsumerProducer):
|
|||
|
||||
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'
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@ class Processor(ConsumerProducer):
|
|||
|
||||
parser.add_argument(
|
||||
'-k', '--api-key',
|
||||
default=default_api_key,
|
||||
help=f'Claude API key'
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ class Processor(ConsumerProducer):
|
|||
|
||||
parser.add_argument(
|
||||
'-k', '--api-key',
|
||||
default=default_api_key,
|
||||
help=f'Cohere API key'
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ class Processor(ConsumerProducer):
|
|||
|
||||
parser.add_argument(
|
||||
'-k', '--api-key',
|
||||
default=default_api_key,
|
||||
help=f'GoogleAIStudio API key'
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@ class Processor(ConsumerProducer):
|
|||
|
||||
parser.add_argument(
|
||||
'-k', '--api-key',
|
||||
default=default_api_key,
|
||||
help=f'OpenAI API key'
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ default_model = 'gemini-1.0-pro-001'
|
|||
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):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue