Skip to content

[BUG]'gpt-3.5-turbo' does not in assertion list #3

@nasirus

Description

@nasirus

when I save llm=OpenAI(temperature=0, model_name="gpt-3.5-turbo"),the json data like this:

"llm": {
"model_name": "gpt-3.5-turbo",
"temperature": 0,
"_type": "openai-chat"
},
but the _type is not in type assertion list, and raise error:

File ~/miniconda3/envs/gpt/lib/python3.10/site-packages/langchain/llms/loading.py:19, in load_llm_from_config(config)
16 config_type = config.pop("_type")
18 if config_type not in type_to_cls_dict:
---> 19 raise ValueError(f"Loading {config_type} LLM not supported")
21 llm_cls = type_to_cls_dict[config_type]
22 return llm_cls(**config)

ValueError: Loading openai-chat LLM not supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions