openai.scm 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. call?
  40. call-function
  41. call-arguments
  42. call-stream
  43. openai-default-image-size
  44. openai-default-image-format
  45. openai-image
  46. openai-image-edit
  47. openai-image-variation
  48. image?
  49. image-url
  50. image-file
  51. openai-default-text-edit-model
  52. openai-default-text-edit-temperature
  53. openai-default-text-edit-top-p
  54. openai-text-edit
  55. openai-default-code-edit-model
  56. openai-default-code-edit-temperature
  57. openai-default-code-edit-top-p
  58. openai-code-edit
  59. edit?
  60. edit-content
  61. openai-default-completion-model
  62. openai-default-completion-temperature
  63. openai-default-completion-top-p
  64. openai-completion
  65. completion?
  66. completion-content
  67. completion-stream
  68. openai-default-embedding-model
  69. openai-embedding
  70. embedding?
  71. embedding-vector
  72. openai-default-moderation-model
  73. openai-moderation
  74. moderation?
  75. moderation-flagged?
  76. moderation-categories
  77. moderation-scores
  78. moderation-score))