Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs to include response_format for OpenAI ChatTextGenerator; responseFormat is supported but not documented #339

Open
mrprkr opened this issue May 10, 2024 · 1 comment

Comments

@mrprkr
Copy link

mrprkr commented May 10, 2024

type OpenAIChatSettings is missing option for response_format

Example:

      .ChatTextGenerator({
        model: 'gpt-4-vision-preview',
        maxGenerationTokens: 2048,
        temperature: 0,
        response_format: { type: "json_object" },
      })
      .withInstructionPrompt(),
@mrprkr mrprkr changed the title Support response_format" for OpenAI ChatTextGenerator Support response_format for OpenAI ChatTextGenerator May 10, 2024
@mrprkr mrprkr changed the title Support response_format for OpenAI ChatTextGenerator Update docs to include response_format for OpenAI ChatTextGenerator (responseFormat is supported but unlisted) May 10, 2024
@mrprkr mrprkr changed the title Update docs to include response_format for OpenAI ChatTextGenerator (responseFormat is supported but unlisted) Update docs to include response_format for OpenAI ChatTextGenerator; responseFormat is supported but not documented May 10, 2024
@mrprkr
Copy link
Author

mrprkr commented May 10, 2024

adding responseFormat is only supported on gpt-4, which throws an error expected an object but received string on vision prompts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant