openai-function-calling icon indicating copy to clipboard operation
openai-function-calling copied to clipboard

Helper functions to generate JSON schema dicts for OpenAI ChatGPT function calling requests.

Results openai-function-calling issues
Sort by recently updated
recently updated
newest added

## Overview of Feature When generating the JSON schema for a function, some parameters might have default values. In the case where at least one parameter has a default value,...

enhancement

## Overview of Feature OpenAI API has provided `strict` parameter months ago, I think it would be nice to support a new parameter when use `to_json_schema`, like `function_name.to_json_schema(strict: True)` https://platform.openai.com/docs/guides/function-calling#function-calling-with-structured-outputs...

enhancement

The `openai-function-calling` package currently specifies Python version support as >=3.9,

### Description: The `openai-function-calling` package currently specifies Python version support as `>=3.9,

It's conflict with instructor (1.3.6) Because instructor (1.3.6) depends on docstring-parser (>=0.16,=0.15,

enhancement

The current project's supported Python range (>=3.11,3.12,2.1.0,

enhancement

The example seems not to work. Looking at the code, it appears that "FunctionInferrer" exists but is not exported.

bug

## Overview of Feature https://github.com/jakecyr/openai-function-calling/blob/5417b8535ea949b0f5ddc703016fb03ecf278103/openai_function_calling/helper_functions.py#L34-L35 `object type` is not working well in the current version (see the test case below). If we have a specific data type on the function...

enhancement

**Describe the bug** When inferring from a function that has an argument of type `list[str]`, I'm getting an error: ```bash ValueError: Expected 'array_item_type' value since type is set to 'array'....

bug

## Overview OpenAI has released new API https://platform.openai.com/docs/api-reference/chat/create It moves `function` feature into `tools`. @jakecyr Do you have plan to update this package to fit this new change? I love...

enhancement