alexschreyer / OpenAI-Explorer-SketchUp

An experimental extension to use OpenAI’s services to create or manipulate geometry in SketchUp using natural language.
5 stars 1 forks source link

how to use different gpt model? #1

Open tinylayer opened 1 year ago

tinylayer commented 1 year ago

Hi Alex, Your amazing extension has showcased the powerful potential of ai tools combined with parametric modeling software. It's simple and yet powerful~!

However, there has been an issue that I come up with. I have been trying to change the gpt model setting from "text-DaVinci-03" to "gpt-4". It returns the error the following popup:

"Couldn't do it! SketchUp error: undefined method '[]' for nil:NilClass OpenAl error The model: 'gpt-4' does not exist"

I even went into the rb file to change all the "text-DaVinci-03" to "gpt-4". (Just a desperate effort, I'm not a programmer haha). And yes, I've upgraded to ChatGPT Plus and used a new api key.

gpt-4 seems to be able to translate prompts a lot more accurately (I've manually copied code into SketchUp).

So, it's possible to use this extension w/ gpt-4? Anything I can do to make it happen?

Regard.

Larry

alexschreyer commented 1 year ago

Great to hear you find this useful. I am also very curious about the quality improvements with GPT-4, but so far haven't gotten the invite yet.

From what I can see, the API does not have a v4 option yet. You can see the available models on this page in the right sidebar: https://platform.openai.com/playground. There is a 3.5 option for the chat, but that doesn't produce only code. The davinci model is much better for this extension's purpose.

Let me know if you see something different from your side.