added mistral to -proxyoutput since it's supported now

This commit is contained in:
based
2023-12-28 02:03:56 +10:00
parent 76079bf140
commit 37b9bd320e
+2 -1
View File
@@ -242,12 +242,13 @@ def output_keys():
if valid_mistral_keys:
pretty_print_mistral_keys(valid_mistral_keys)
else:
# ai21, mistral and vertex keys aren't supported in proxies so no point outputting them, filtered azure keys should be excluded.
# ai21, and vertex keys aren't supported in proxies so no point outputting them, filtered azure keys should be excluded.
print("OPENAI_KEY=" + ','.join(key.api_key for key in valid_oai_keys))
print("ANTHROPIC_KEY=" + ','.join(key.api_key for key in valid_anthropic_keys))
print("AWS_CREDENTIALS=" + ','.join(f"{key.api_key}:{key.region}" for key in valid_aws_keys))
print("GOOGLE_AI_KEY=" + ','.join(key.api_key for key in valid_makersuite_keys))
print("AZURE_CREDENTIALS=" + ','.join(f"{key.api_key.split(':')[0]}:{key.best_deployment}:{key.api_key.split(':')[1]}" for key in valid_azure_keys if key.unfiltered))
print("MISTRAL_AI_KEY=" + ','.join(key.api_key for key in valid_mistral_keys))
if should_write:
sys.stdout.file.close()