Skip to content

Commit 1062459

Browse files
fix: type names
1 parent 7b6a657 commit 1062459

File tree

10 files changed

+25
-19
lines changed

10 files changed

+25
-19
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 80
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-c22f59c66aec7914b6ee653d3098d1c1c8c16c180d2a158e819c8ddbf476f74b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5ad6884898c07591750dde560118baf7074a59aecd1f367f930c5e42b04e848a.yml

lib/openai/models/beta/assistant_create_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,11 @@ class VectorStore < OpenAI::BaseModel
312312

313313
# def initialize: (Hash | OpenAI::BaseModel) -> void
314314

315-
# @abstract
316-
#
317315
# The chunking strategy used to chunk the file(s). If not set, will use the `auto`
318316
# strategy.
319-
class ChunkingStrategy < OpenAI::Union
317+
module ChunkingStrategy
318+
extend OpenAI::Union
319+
320320
discriminator :type
321321

322322
# The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.

lib/openai/models/beta/thread_create_and_run_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,11 @@ class VectorStore < OpenAI::BaseModel
558558

559559
# def initialize: (Hash | OpenAI::BaseModel) -> void
560560

561-
# @abstract
562-
#
563561
# The chunking strategy used to chunk the file(s). If not set, will use the `auto`
564562
# strategy.
565-
class ChunkingStrategy < OpenAI::Union
563+
module ChunkingStrategy
564+
extend OpenAI::Union
565+
566566
discriminator :type
567567

568568
# The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.

lib/openai/models/beta/thread_create_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,11 @@ class VectorStore < OpenAI::BaseModel
330330

331331
# def initialize: (Hash | OpenAI::BaseModel) -> void
332332

333-
# @abstract
334-
#
335333
# The chunking strategy used to chunk the file(s). If not set, will use the `auto`
336334
# strategy.
337-
class ChunkingStrategy < OpenAI::Union
335+
module ChunkingStrategy
336+
extend OpenAI::Union
337+
338338
discriminator :type
339339

340340
# The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.

rbi/lib/openai/models/beta/assistant_create_params.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ module OpenAI
531531

532532
# The chunking strategy used to chunk the file(s). If not set, will use the `auto`
533533
# strategy.
534-
class ChunkingStrategy < OpenAI::Union
535-
abstract!
534+
module ChunkingStrategy
535+
extend OpenAI::Union
536536

537537
Variants =
538538
type_template(:out) do

rbi/lib/openai/models/beta/thread_create_and_run_params.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,8 @@ module OpenAI
10071007

10081008
# The chunking strategy used to chunk the file(s). If not set, will use the `auto`
10091009
# strategy.
1010-
class ChunkingStrategy < OpenAI::Union
1011-
abstract!
1010+
module ChunkingStrategy
1011+
extend OpenAI::Union
10121012

10131013
Variants =
10141014
type_template(:out) do

rbi/lib/openai/models/beta/thread_create_params.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ module OpenAI
581581

582582
# The chunking strategy used to chunk the file(s). If not set, will use the `auto`
583583
# strategy.
584-
class ChunkingStrategy < OpenAI::Union
585-
abstract!
584+
module ChunkingStrategy
585+
extend OpenAI::Union
586586

587587
Variants =
588588
type_template(:out) do

sig/openai/models/beta/assistant_create_params.rbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ module OpenAI
166166
OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Auto
167167
| OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static
168168

169-
class ChunkingStrategy < OpenAI::Union
169+
module ChunkingStrategy
170+
extend OpenAI::Union
171+
170172
type auto = { type: :auto }
171173

172174
class Auto < OpenAI::BaseModel

sig/openai/models/beta/thread_create_and_run_params.rbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ module OpenAI
308308
OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Auto
309309
| OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static
310310

311-
class ChunkingStrategy < OpenAI::Union
311+
module ChunkingStrategy
312+
extend OpenAI::Union
313+
312314
type auto = { type: :auto }
313315

314316
class Auto < OpenAI::BaseModel

sig/openai/models/beta/thread_create_params.rbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ module OpenAI
224224
OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Auto
225225
| OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static
226226

227-
class ChunkingStrategy < OpenAI::Union
227+
module ChunkingStrategy
228+
extend OpenAI::Union
229+
228230
type auto = { type: :auto }
229231

230232
class Auto < OpenAI::BaseModel

0 commit comments

Comments
 (0)