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

Chore: Add initializer for FunctionCall #186

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thekoc
Copy link

@thekoc thekoc commented Mar 24, 2024

What

Add a public initializer for ChatQuery.ChatCompletionMessageParam.ChatCompletionAssistantMessageParam.ChatCompletionMessageToolCallParam.FunctionCall, allowing it to be created programmatically.

Why

When converting chat history from other LLM services (such as Claude and Gemini) into the OpenAI format, it is necessary to create instances of the FunctionCall struct programmatically. However, the initializer for the FunctionCall struct is currently missing, making it impossible to create instances of this struct from code outside the package.

Affected Areas

Only ChatQuery.ChatCompletionMessageParam.ChatCompletionAssistantMessageParam.ChatCompletionMessageToolCallParam.FunctionCall

Copy link

sonarcloud bot commented Mar 24, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@thekoc thekoc changed the title Chore: Add initializer for FunctionCall Chore: Add initializer for FunctionCall Mar 24, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants