# TS errors following the quickstart tutorial

**URL:** https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295
**Category:** Support
**Created:** [May 13, 2024, 2:35pm UTC](https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295 "2024-05-13T14:35:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Seungchan\_Lee](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/seungchan_lee/32/1486_2.png) [@Seungchan\_Lee](https://forum.weaviate.io/u/Seungchan_Lee)
#### Post date: [May 13, 2024, 2:35pm UTC](https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295/1 "2024-05-13T14:35:16Z")

</div>

Hi,

I get typescript errors following the quickstart tutorial - `An argument for 'name' was not provided.` for `text2VecOpenAI()`:

```auto
const schema = { name: collectionName, vectorizer: weaviate.configure.vectorizer.text2VecOpenAI(), generative: weaviate.configure.generative.openAI(), }

```

I also tried the provider-specific instruction:

```auto
vectorizer: [weaviate.configure.namedVectorizer( 'title_vector', { properties: ['title'], vectorizerConfig: weaviate.configure.vectorizer.text2VecOpenAI(), }, ), ],

```

More errors:

```auto
Property 'namedVectorizer' does not exist on type...

```

Adding options to the vectorizerConfig also throws ts errors:

```auto
Argument of type '{ model: string; dimensions: number; }' is not assignable to parameter of type 'string'.

```

Collection creation using the above code also throws this ts error:

```auto
Argument of type '{ name: string; vectorizer: any[]; generative: ModuleConfig<"generative-openai", GenerativeOpenAIConfig | undefined>; }' is not assignable to parameter of type 'CollectionConfigCreate<undefined, string>'.

```

### Server Setup Information

- Weaviate Server Version: 1.24.12
- Deployment Method: Weaviate Cloud
- Client Language and Version: Typescript v3 (`3.0.0-rc.1`)

Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [May 13, 2024, 4:53pm UTC](https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295/2 "2024-05-13T16:53:21Z")

</div>

hi @Seungchan_Lee !

Welcome to our community! 🤗

I have spotted this issue last week, and already have written a PR for it:

> <https://github.com/weaviate/weaviate-io/pull/2072>
>
> \<!--
> Thank you for contributing to this project! You must fill out the informat…ion below before we can review this pull request. We can triage your pull request to the best possible team for review if you explain why you're making a change (or linking to a pull request) and what changes you've made.
> 
> See our \[CONTRIBUTING.md\](/CONTRIBUTING.md) for information how to contribute.
> 
> Thanks again!
> \--\>
> 
> \### What's being changed:
> 
> We have old syntax in place for definition vectorizers for default colection:
> 
> instead of
> \`\`\`typescript
> await client.collections.create({
> name: collectionName,
> vectorizer: weaviate.configure.vectorizer.text2VecOpenAI(),
> })
> \`\`\`
> it should be
> \`\`\`typescript
> await client.collections.create({
> name: collectionName,
> vectorizers: weaviate.configure.vectorizer.text2VecOpenAI("default"),
> })
> \`\`\`
> 
> 
> 
> 
> \### Type of change:
> 
> 
> 
> \- \[x\] \*\*Documentation\*\* updates (non-breaking change to fix/update documentation)
> \- \[\] \*\*Website\*\* updates (non-breaking change to update main page, company pages, pricing, etc)
> \- \[\] \*\*Content\*\* updates – \*\*blog\*\*, \*\*podcast\*\* (non-breaking change to add/update content)
> \- \[\] \*\*Bug fix\*\* (non-breaking change to fixes an issue with the site)
> \- \[\] \*\*Feature\*\* or \*\*enhancements\*\* (non-breaking change to add functionality)
> 
> \### How Has This Been Tested?
> 
> 
> 
> \- \[\] \*\*Github action\*\* – automated build completed without errors
> \- \[\] \*\*Local build\*\* - the site works as expected when running \`yarn start\`
> 
> \> note, you can run \`yarn verify-links\` to test site links locally

We hope to have it reviewed soon.

this is the expected syntax:

```auto
await client.collections.create({
  name: collectionName,
  vectorizers: weaviate.configure.vectorizer.text2VecOpenAI("default"),
})

```

Thanks for pointing it out and sorry for that 😬

---

<div class="post-metadata">

### Author: ![Seungchan\_Lee](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/seungchan_lee/32/1486_2.png) [@Seungchan\_Lee](https://forum.weaviate.io/u/Seungchan_Lee)
#### Post date: [May 13, 2024, 6:06pm UTC](https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295/3 "2024-05-13T18:06:53Z")

</div>

Thanks for the response - are there any workarounds at this time? If not, when is the expected release for this?

---

<div class="post-metadata">

### Author: ![Seungchan\_Lee](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/seungchan_lee/32/1486_2.png) [@Seungchan\_Lee](https://forum.weaviate.io/u/Seungchan_Lee)
#### Post date: [May 13, 2024, 6:14pm UTC](https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295/4 "2024-05-13T18:14:25Z")

</div>

Actually it looks like that’s just documentation fix? Got it - thanks.

One more question - how do I pick a different model and vector dimensions?

---

<div class="post-metadata">

### Author: ![sebawita](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sebawita/32/5_2.png) [@sebawita](https://forum.weaviate.io/u/sebawita)
#### Post date: [May 14, 2024, 9:56am UTC](https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295/5 "2024-05-14T09:56:46Z")

</div>

Hi @Seungchan_Lee,

You can provide the `model` by adding additional properties to `text2Vec`, like this (see [docs](https://weaviate.io/developers/weaviate/manage-data/collections#specify-vectorizer-settings)):

```js
await client.collections.create({
  name: collectionName,
  vectorizers: weaviate.configure.vectorizer.text2VecOpenAI(
    "default",
    {
      model: 'text-embedding-3-large',
      dimensions: 1024, //Parameter only applicable for `v3` model family and newer
    }
),
})

```

You can find more info in the provider-dedicated docs, here is the page for the [OpenAI integration](https://weaviate.io/developers/weaviate/model-providers/openai/embeddings#example-configuration)

Btw. if you use models that have only one option for number of dimensions, i.e. ada-002, then you don’t need to specify the dimensions.

---

<div class="post-metadata">

### Author: ![Seungchan\_Lee](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/seungchan_lee/32/1486_2.png) [@Seungchan\_Lee](https://forum.weaviate.io/u/Seungchan_Lee)
#### Post date: [May 15, 2024, 1:37am UTC](https://forum.weaviate.io/t/ts-errors-following-the-quickstart-tutorial/2295/6 "2024-05-15T01:37:46Z")

</div>

This works - thank you for your help
