|
|
|
|
|
|
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
credentials={ |
|
|
credentials={ |
|
|
'api_key': 'invalid_key', |
|
|
'api_key': 'invalid_key', |
|
|
'endpoint_url': 'https://api.together.xyz/v1/chat/completions', |
|
|
|
|
|
|
|
|
'endpoint_url': 'https://api.together.xyz/v1/', |
|
|
'mode': 'chat' |
|
|
'mode': 'chat' |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
credentials={ |
|
|
credentials={ |
|
|
'api_key': os.environ.get('TOGETHER_API_KEY'), |
|
|
'api_key': os.environ.get('TOGETHER_API_KEY'), |
|
|
'endpoint_url': 'https://api.together.xyz/v1/chat/completions', |
|
|
|
|
|
|
|
|
'endpoint_url': 'https://api.together.xyz/v1/', |
|
|
'mode': 'chat' |
|
|
'mode': 'chat' |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
credentials={ |
|
|
credentials={ |
|
|
'api_key': os.environ.get('TOGETHER_API_KEY'), |
|
|
'api_key': os.environ.get('TOGETHER_API_KEY'), |
|
|
'endpoint_url': 'https://api.together.xyz/v1/completions', |
|
|
|
|
|
|
|
|
'endpoint_url': 'https://api.together.xyz/v1/', |
|
|
'mode': 'completion' |
|
|
'mode': 'completion' |
|
|
}, |
|
|
}, |
|
|
prompt_messages=[ |
|
|
prompt_messages=[ |
|
|
|
|
|
|
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
credentials={ |
|
|
credentials={ |
|
|
'api_key': os.environ.get('TOGETHER_API_KEY'), |
|
|
'api_key': os.environ.get('TOGETHER_API_KEY'), |
|
|
'endpoint_url': 'https://api.together.xyz/v1/chat/completions', |
|
|
|
|
|
|
|
|
'endpoint_url': 'https://api.together.xyz/v1/', |
|
|
'mode': 'chat' |
|
|
'mode': 'chat' |
|
|
}, |
|
|
}, |
|
|
prompt_messages=[ |
|
|
prompt_messages=[ |
|
|
|
|
|
|
|
|
model='gpt-3.5-turbo', |
|
|
model='gpt-3.5-turbo', |
|
|
credentials={ |
|
|
credentials={ |
|
|
'api_key': os.environ.get('OPENAI_API_KEY'), |
|
|
'api_key': os.environ.get('OPENAI_API_KEY'), |
|
|
'endpoint_url': 'https://api.openai.com/v1/chat/completions', |
|
|
|
|
|
|
|
|
'endpoint_url': 'https://api.openai.com/v1/', |
|
|
'mode': 'chat' |
|
|
'mode': 'chat' |
|
|
}, |
|
|
}, |
|
|
prompt_messages=[ |
|
|
prompt_messages=[ |
|
|
|
|
|
|
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
model='mistralai/Mixtral-8x7B-Instruct-v0.1', |
|
|
credentials={ |
|
|
credentials={ |
|
|
'api_key': os.environ.get('OPENAI_API_KEY'), |
|
|
'api_key': os.environ.get('OPENAI_API_KEY'), |
|
|
'endpoint_url': 'https://api.openai.com/v1/chat/completions' |
|
|
|
|
|
|
|
|
'endpoint_url': 'https://api.openai.com/v1/' |
|
|
}, |
|
|
}, |
|
|
prompt_messages=[ |
|
|
prompt_messages=[ |
|
|
SystemPromptMessage( |
|
|
SystemPromptMessage( |