zhudotexe / kani

kani (カニ) is a highly hackable microframework for chat-based language models with tool use/function calling. (NLP-OSS @ EMNLP 2023)
https://kani.readthedocs.io
MIT License
557 stars 30 forks source link

Initialized the model to use GPT 4 but GPT 3 is used ? #15

Closed dcssi closed 1 year ago

dcssi commented 1 year ago

I initialized my model like this OpenAIEngine(api_key, model="gpt-4")

However if I ask the model what version it is, it replies its gpt 3 ( yes i named my chatbot trevor"

[' Trevor, are you GPT-3 or GPT-4?'] I'm powered by GPT-three.

jsedoc commented 1 year ago

This is GPT-4's fault

image
zhudotexe commented 1 year ago

Yup! GPT-4 does not know it's not GPT-3. You can verify that the model param is passed to the OpenAI API here: https://github.com/zhudotexe/kani/blob/main/kani/engines/openai/engine.py#L117