Skip to content

Add a Mocked Server for Testing #30

@RobotSail

Description

@RobotSail

Based on a request from #27, we should introduce a mocked server which tests that values are correctly sent by go-gpt3 and received by the server, as well as the ability for the client to receive data from the server.

This can help us to quickly iterate on tests without spending any OpenAI credits.

We need the following to complete this task

  • Create a mocked OpenAI API server
  • Write endpoint handlers and tests for the mocked server:
    • Completions
    • Edits
    • Moderation
    • Search
    • Embeddings
    • Answers
    • Files
    • Classifications

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions