# Select Specific Model for OpenAI API

**URL:** https://community.glideapps.com/t/select-specific-model-for-openai-api/67016
**Category:** Ask for Help
**Created:** [October 16, 2023, 1:02pm UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016 "2023-10-16T13:02:56Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Raphael\_Aebersold](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raphael_aebersold/32/64167_2.png) [@Raphael\_Aebersold](https://community.glideapps.com/u/Raphael_Aebersold)
#### Post date: [October 16, 2023, 1:02pm UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/1 "2023-10-16T13:02:56Z")

</div>

Hi Gliders,

I was wondering if there’s a way to select a specific model when using the API from OpenAI?

I am using the “Ask a question about a table” but it seems like the context window is not large enough.

Best,  
Raphael

---

<div class="post-metadata">

### Author: ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)
#### Post date: [October 16, 2023, 1:47pm UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/2 "2023-10-16T13:47:57Z")

</div>

No, you will need to call the API directly with Call API to customize the model.

---

<div class="post-metadata">

### Author: ![Raphael\_Aebersold](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raphael_aebersold/32/64167_2.png) [@Raphael\_Aebersold](https://community.glideapps.com/u/Raphael_Aebersold)
#### Post date: [October 16, 2023, 2:04pm UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/3 "2023-10-16T14:04:14Z")

</div>

Thanks for the quick response @david

By using the Call API, is it possible to conduct the same “ask a question about a table” function as with the regular OpenAI call?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 16, 2023, 11:40pm UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/4 "2023-10-16T23:40:44Z")

</div>

I don’t think so. “Ask a question about a table” is a different process where they utilize an internal flow to take the most related row(s) from said table to try to answer your question. Call API won’t have that built in option.

---

<div class="post-metadata">

### Author: ![Raphael\_Aebersold](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raphael_aebersold/32/64167_2.png) [@Raphael\_Aebersold](https://community.glideapps.com/u/Raphael_Aebersold)
#### Post date: [October 17, 2023, 9:26am UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/5 "2023-10-17T09:26:48Z")

</div>

Thanks for your input @ThinhDinh.

That’s really sad to hear, but im wondering if it was possible to send a whole table (from glideapp) as .csv via API to ChatGPT and then return some rows from the API.

What do you think?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 17, 2023, 9:32am UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/6 "2023-10-17T09:32:33Z")

</div>

That is indeed possible, but you have to take into account the tokens limit.

---

<div class="post-metadata">

### Author: ![Raphael\_Aebersold](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raphael_aebersold/32/64167_2.png) [@Raphael\_Aebersold](https://community.glideapps.com/u/Raphael_Aebersold)
#### Post date: [October 18, 2023, 6:52am UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/7 "2023-10-18T06:52:20Z")

</div>

Glad to hear @ThinhDinh.

Regarding the token limit, this is a huge problem indeed (that im supposedly already facing right now) but with the API I could at least select a model with bigger context window.

Do you know by any chance which model is used in the “Answer a question about a table”?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 18, 2023, 11:45pm UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/8 "2023-10-18T23:45:27Z")

</div>

I don’t know which model they use, but I think they approach it by storing your rows as vectors in an internal database, then querying out top-x most related rows when you ask a question, and feed that context plus your question to OpenAI to get an answer.

If your context window is big, you might want to try Claude’s API (waitlist for API access, though).

---

<div class="post-metadata">

### Author: ![Raphael\_Aebersold](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raphael_aebersold/32/64167_2.png) [@Raphael\_Aebersold](https://community.glideapps.com/u/Raphael_Aebersold)
#### Post date: [October 19, 2023, 6:24am UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/9 "2023-10-19T06:24:05Z")

</div>

Got it. 👍

The 16 or 32k would definitely be fine in my case. However, I think it would be great to select the model like in zapier for example (since the API key is my own anyway).

Thanks for the hint with claude 🙌

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 20, 2023, 12:34am UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/10 "2023-10-20T00:34:33Z")

</div>

> [@Raphael\_Aebersold](#):
>
> The 16 or 32k would definitely be fine in my case

Do you have access to this though? I tried in the past, but turns out I didn’t have access.

---

<div class="post-metadata">

### Author: ![Raphael\_Aebersold](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raphael_aebersold/32/64167_2.png) [@Raphael\_Aebersold](https://community.glideapps.com/u/Raphael_Aebersold)
#### Post date: [October 20, 2023, 7:16am UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/11 "2023-10-20T07:16:30Z")

</div>

Good question. If I remember correctly I was able to select these models within zapier back when i used it.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [October 27, 2023, 7:17am UTC](https://community.glideapps.com/t/select-specific-model-for-openai-api/67016/12 "2023-10-27T07:17:16Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
