mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
IMPROVEMENT Adds support for new OctoAI endpoints (#13521)
small fix to add support for new OctoAI LLM endpoints
This commit is contained in:
parent
cda1b33270
commit
ff382b7b1b
@ -123,7 +123,7 @@ class OctoAIEndpoint(LLM):
|
||||
|
||||
octoai_client = client.Client(token=self.octoai_api_token)
|
||||
|
||||
if "model" in _model_kwargs and "llama-2" in _model_kwargs["model"]:
|
||||
if "model" in _model_kwargs:
|
||||
parameter_payload = _model_kwargs
|
||||
parameter_payload["messages"].append(
|
||||
{"role": "user", "content": prompt}
|
||||
|
Loading…
Reference in New Issue
Block a user