aitable.ai.http 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ### 全局变量
  2. @hostname = api.AITable.com
  3. # @hostname= localhost:89
  4. @host = https://{{hostname}}
  5. @api={{host}}/fusion/v1
  6. @contentType = application/json
  7. @createdAt = {{$datetime iso8601}}
  8. @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
  9. @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
  10. @uid=10022
  11. @token=uskMcEwW0LMNEpmG97urcE7
  12. # 通过token获取spaceid
  13. @spaceid=spcrzdpWl8SrU
  14. # 申请
  15. @botid=ai_zxLeHGV3ac32YYC
  16. @nodeId=
  17. @datasheetId=
  18. @dashboardId
  19. @formId
  20. @viewId
  21. ### Get all the spaces
  22. GET /fusion/v1/spaces
  23. Authorization: Bearer {{token}}
  24. Host: aitable.ai
  25. ### 获取配置
  26. POST /fusion/ai/{{botid}}/chat/completions
  27. Authorization: Bearer {{token}}
  28. Content-Type: application/json
  29. Host: aitable.ai
  30. Content-Length: 150
  31. {
  32. "model": "gpt-3.5-turbo",
  33. "messages": [
  34. {
  35. "role": "system",
  36. "content": "You are a helpful assistant."
  37. },
  38. {
  39. "role": "user",
  40. "content": "Hello!"
  41. }
  42. ]
  43. }