openai.scm 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ;;; guile-openai --- An OpenAI API client for Guile
  2. ;;; Copyright © 2023 Andrew Whatson <whatson@tailcall.au>
  3. ;;;
  4. ;;; This file is part of guile-openai.
  5. ;;;
  6. ;;; guile-openai is free software: you can redistribute it and/or modify
  7. ;;; it under the terms of the GNU Affero General Public License as
  8. ;;; published by the Free Software Foundation, either version 3 of the
  9. ;;; License, or (at your option) any later version.
  10. ;;;
  11. ;;; guile-openai is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. ;;; Affero General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU Affero General Public
  17. ;;; License along with guile-openai. If not, see
  18. ;;; <https://www.gnu.org/licenses/>.
  19. (define-module (openai)
  20. #:use-module (openai client)
  21. #:use-module (openai chat)
  22. #:use-module (openai completion)
  23. #:use-module (openai edit)
  24. #:use-module (openai embedding)
  25. #:use-module (openai image)
  26. #:use-module (openai moderation)
  27. #:re-export (openai-base-uri
  28. openai-api-key
  29. openai-organization
  30. openai-default-headers
  31. openai-default-user
  32. openai-default-chat-model
  33. openai-default-chat-temperature
  34. openai-default-chat-top-p
  35. openai-chat
  36. chat?
  37. chat-content
  38. chat-stream
  39. openai-default-image-size
  40. openai-default-image-format
  41. openai-image
  42. openai-image-edit
  43. openai-image-variation
  44. image?
  45. image-url
  46. image-file
  47. openai-default-text-edit-model
  48. openai-default-text-edit-temperature
  49. openai-default-text-edit-top-p
  50. openai-text-edit
  51. openai-default-code-edit-model
  52. openai-default-code-edit-temperature
  53. openai-default-code-edit-top-p
  54. openai-code-edit
  55. edit?
  56. edit-content
  57. openai-default-completion-model
  58. openai-default-completion-temperature
  59. openai-default-completion-top-p
  60. openai-completion
  61. completion?
  62. completion-content
  63. completion-stream
  64. openai-default-embedding-model
  65. openai-embedding
  66. embedding?
  67. embedding-vector
  68. openai-default-moderation-model
  69. openai-moderation
  70. moderation?
  71. moderation-flagged?
  72. moderation-categories
  73. moderation-scores
  74. moderation-score))