Tags: ganglio/go-openai
Tags
Update README.md with Azure OpenAI ChatGPT example (sashabaranov#239) Co-authored-by: coggsflod <[email protected]>
to fix v1.5.8 Usage return (sashabaranov#223) * add ChatCompletionStream Usage return * ChatCompletionStreamResponse will bot return Usage * remove the Usage field from the response, it would not be there anyway. --------- Co-authored-by: lihang <[email protected]>
feat: add azure openai support (sashabaranov#214) * feat: add azure openai support * chore: refine config * chore: make config options like the python one * chore: adjust config struct field order * test: fix tests * style: make the linter happy * fix: support Azure API Key authentication in sendRequest * chore: check error in CreateChatCompletionStream * chore: pass tests * chore: try pass tests again * chore: change ClientConfig back due to this lib does not like WithXxx config style * chore: revert fix to CreateChatCompletionStream() due to cause tests not pass * chore: at least add some comment about the required fields * chore: re order ClientConfig fields * chore: add DefaultAzure() * chore: set default api_version the same as py one "2023-03-15-preview" * style: fixup typo * test: add api_internal_test.go * style: make lint happy * chore: add constant AzureAPIKeyHeader * chore: use AzureAPIKeyHeader for api-key header, fix azure base url auto trim suffix / * test: add TestAzureFullURL, TestRequestAuthHeader and TestOpenAIFullURL * test: simplify TestRequestAuthHeader * test: refine TestOpenAIFullURL * chore: refine comments * feat: DefaultAzureConfig
add ChatCompletionStream Usage return (sashabaranov#215) Co-authored-by: lihang <[email protected]>
refactor: Refactor endpoint and model compatibility check (sashabaran… …ov#180) * Add model check for chat stream * Sync model checks * Fix typo * Fix functino * refactor: Refactor endpoint and model compatibility check * apply review suggestions * minor fix * invert return boolean flag * fix test
simplify unmarshal (sashabaranov#191) * simplify unmarshal * simplify unmarshalError * rename errorAccumulate -> defaultErrorAccumulator * update converage
add optional params for audio api, e.g. prompt (sashabaranov#183) * Compatible with the situation where the mask is empty in CreateEditImage. * Fix the test for the unnecessary removal of the mask.png file. * add image variation implementation * fix image variation bugs * fix ci-lint problem with max line character limit * add offitial doc link * just for codeball test * fix lint problem * add optional params for audio api, e.g. prompt * add comment for new args in translation
PreviousNext