123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- ### 全局变量
- @hostname = api.AITable.com
- # @hostname= localhost:89
- @host = https://{{hostname}}
- @api={{host}}/fusion/v1
- @contentType = application/json
- @createdAt = {{$datetime iso8601}}
- @useragent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
- @accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
- @uid=10022
- @token=uskMcEwW0LMNEpmG97urcE7
- # 通过token获取spaceid
- @spaceid=spcrzdpWl8SrU
- # 申请
- @botid=ai_zxLeHGV3ac32YYC
- @nodeId=
- @datasheetId=
- @dashboardId
- @formId
- @viewId
- ### Get all the spaces
- GET /fusion/v1/spaces
- Authorization: Bearer {{token}}
- Host: aitable.ai
- ### 获取配置
- POST /fusion/ai/{{botid}}/chat/completions
- Authorization: Bearer {{token}}
- Content-Type: application/json
- Host: aitable.ai
- Content-Length: 150
- {
- "model": "gpt-3.5-turbo",
- "messages": [
- {
- "role": "system",
- "content": "You are a helpful assistant."
- },
- {
- "role": "user",
- "content": "Hello!"
- }
- ]
- }
|