-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeakThread.yaml
More file actions
65 lines (62 loc) · 1.6 KB
/
beakThread.yaml
File metadata and controls
65 lines (62 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
openapi: 3.0.3
info:
title: AI Studio API - Threads
version: 1.0.0
description: API for creating assistant threads.
servers:
- url: https://ai-qa.beakops.com/api/bitc
paths:
/threads/{id}:
post:
summary: Create a new thread with the assistant
operationId: createThread
parameters:
- in: path
name: id
required: true
schema:
type: string
description: id given by user
security:
- ApiKeyAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
assistant_id:
type: string
example: "cfb458bb-09d1-4131-8b03-2b6249750eed"
name:
type: string
example: "Hello AI"
required:
- assistant_id
- name
responses:
"201":
description: Thread created successfully
content:
application/json:
schema:
type: object
properties:
thread_id:
type: string
format: uuid
example: "3e2d7f10-2a87-4c5c-9b70-3f7e4a8aef45"
name:
type: string
example: "Hello AI"
"400":
description: Bad Request
"401":
description: Unauthorized
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: Api-Key