Skip to content

Commit

Permalink
fix s/None/OMIT default bug for copilot client
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Sep 22, 2024
1 parent 8ab4a55 commit fc411c4
Showing 1 changed file with 122 additions and 122 deletions.
244 changes: 122 additions & 122 deletions src/gooey/copilot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,67 +42,67 @@ def completion(
self,
*,
example_id: typing.Optional[str] = None,
functions: typing.Optional[typing.List[CopilotCompletionRequestFunctionsItem]] = None,
variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None,
input_prompt: typing.Optional[str] = None,
input_audio: typing.Optional[str] = None,
input_images: typing.Optional[typing.List[core.File]] = None,
input_documents: typing.Optional[typing.List[core.File]] = None,
doc_extract_url: typing.Optional[str] = None,
messages: typing.Optional[typing.List[ConversationEntry]] = None,
bot_script: typing.Optional[str] = None,
selected_model: typing.Optional[LargeLanguageModels] = None,
document_model: typing.Optional[str] = None,
task_instructions: typing.Optional[str] = None,
query_instructions: typing.Optional[str] = None,
keyword_instructions: typing.Optional[str] = None,
documents: typing.Optional[typing.List[core.File]] = None,
max_references: typing.Optional[int] = None,
max_context_words: typing.Optional[int] = None,
scroll_jump: typing.Optional[int] = None,
embedding_model: typing.Optional[EmbeddingModels] = None,
dense_weight: typing.Optional[float] = None,
citation_style: typing.Optional[CitationStyles] = None,
use_url_shortener: typing.Optional[bool] = None,
asr_model: typing.Optional[AsrModels] = None,
asr_language: typing.Optional[str] = None,
translation_model: typing.Optional[TranslationModels] = None,
user_language: typing.Optional[str] = None,
input_glossary_document: typing.Optional[core.File] = None,
output_glossary_document: typing.Optional[core.File] = None,
lipsync_model: typing.Optional[LipsyncModels] = None,
tools: typing.Optional[typing.List[LlmTools]] = None,
avoid_repetition: typing.Optional[bool] = None,
num_outputs: typing.Optional[int] = None,
quality: typing.Optional[float] = None,
max_tokens: typing.Optional[int] = None,
sampling_temperature: typing.Optional[float] = None,
response_format_type: typing.Optional[ResponseFormatType] = None,
tts_provider: typing.Optional[TextToSpeechProviders] = None,
uberduck_voice_name: typing.Optional[str] = None,
uberduck_speaking_rate: typing.Optional[float] = None,
google_voice_name: typing.Optional[str] = None,
google_speaking_rate: typing.Optional[float] = None,
google_pitch: typing.Optional[float] = None,
bark_history_prompt: typing.Optional[str] = None,
elevenlabs_voice_name: typing.Optional[str] = None,
elevenlabs_api_key: typing.Optional[str] = None,
elevenlabs_voice_id: typing.Optional[str] = None,
elevenlabs_model: typing.Optional[str] = None,
elevenlabs_stability: typing.Optional[float] = None,
elevenlabs_similarity_boost: typing.Optional[float] = None,
elevenlabs_style: typing.Optional[float] = None,
elevenlabs_speaker_boost: typing.Optional[bool] = None,
azure_voice_name: typing.Optional[str] = None,
openai_voice_name: typing.Optional[OpenAiTtsVoices] = None,
openai_tts_model: typing.Optional[OpenAiTtsModels] = None,
input_face: typing.Optional[core.File] = None,
face_padding_top: typing.Optional[int] = None,
face_padding_bottom: typing.Optional[int] = None,
face_padding_left: typing.Optional[int] = None,
face_padding_right: typing.Optional[int] = None,
sadtalker_settings: typing.Optional[CopilotCompletionRequestSadtalkerSettings] = None,
settings: typing.Optional[RunSettings] = None,
functions: typing.Optional[typing.List[CopilotCompletionRequestFunctionsItem]] = OMIT,
variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
input_prompt: typing.Optional[str] = OMIT,
input_audio: typing.Optional[str] = OMIT,
input_images: typing.Optional[typing.List[core.File]] = OMIT,
input_documents: typing.Optional[typing.List[core.File]] = OMIT,
doc_extract_url: typing.Optional[str] = OMIT,
messages: typing.Optional[typing.List[ConversationEntry]] = OMIT,
bot_script: typing.Optional[str] = OMIT,
selected_model: typing.Optional[LargeLanguageModels] = OMIT,
document_model: typing.Optional[str] = OMIT,
task_instructions: typing.Optional[str] = OMIT,
query_instructions: typing.Optional[str] = OMIT,
keyword_instructions: typing.Optional[str] = OMIT,
documents: typing.Optional[typing.List[core.File]] = OMIT,
max_references: typing.Optional[int] = OMIT,
max_context_words: typing.Optional[int] = OMIT,
scroll_jump: typing.Optional[int] = OMIT,
embedding_model: typing.Optional[EmbeddingModels] = OMIT,
dense_weight: typing.Optional[float] = OMIT,
citation_style: typing.Optional[CitationStyles] = OMIT,
use_url_shortener: typing.Optional[bool] = OMIT,
asr_model: typing.Optional[AsrModels] = OMIT,
asr_language: typing.Optional[str] = OMIT,
translation_model: typing.Optional[TranslationModels] = OMIT,
user_language: typing.Optional[str] = OMIT,
input_glossary_document: typing.Optional[core.File] = OMIT,
output_glossary_document: typing.Optional[core.File] = OMIT,
lipsync_model: typing.Optional[LipsyncModels] = OMIT,
tools: typing.Optional[typing.List[LlmTools]] = OMIT,
avoid_repetition: typing.Optional[bool] = OMIT,
num_outputs: typing.Optional[int] = OMIT,
quality: typing.Optional[float] = OMIT,
max_tokens: typing.Optional[int] = OMIT,
sampling_temperature: typing.Optional[float] = OMIT,
response_format_type: typing.Optional[ResponseFormatType] = OMIT,
tts_provider: typing.Optional[TextToSpeechProviders] = OMIT,
uberduck_voice_name: typing.Optional[str] = OMIT,
uberduck_speaking_rate: typing.Optional[float] = OMIT,
google_voice_name: typing.Optional[str] = OMIT,
google_speaking_rate: typing.Optional[float] = OMIT,
google_pitch: typing.Optional[float] = OMIT,
bark_history_prompt: typing.Optional[str] = OMIT,
elevenlabs_voice_name: typing.Optional[str] = OMIT,
elevenlabs_api_key: typing.Optional[str] = OMIT,
elevenlabs_voice_id: typing.Optional[str] = OMIT,
elevenlabs_model: typing.Optional[str] = OMIT,
elevenlabs_stability: typing.Optional[float] = OMIT,
elevenlabs_similarity_boost: typing.Optional[float] = OMIT,
elevenlabs_style: typing.Optional[float] = OMIT,
elevenlabs_speaker_boost: typing.Optional[bool] = OMIT,
azure_voice_name: typing.Optional[str] = OMIT,
openai_voice_name: typing.Optional[OpenAiTtsVoices] = OMIT,
openai_tts_model: typing.Optional[OpenAiTtsModels] = OMIT,
input_face: typing.Optional[core.File] = OMIT,
face_padding_top: typing.Optional[int] = OMIT,
face_padding_bottom: typing.Optional[int] = OMIT,
face_padding_left: typing.Optional[int] = OMIT,
face_padding_right: typing.Optional[int] = OMIT,
sadtalker_settings: typing.Optional[CopilotCompletionRequestSadtalkerSettings] = OMIT,
settings: typing.Optional[RunSettings] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> VideoBotsPageOutput:
"""
Expand Down Expand Up @@ -394,67 +394,67 @@ async def completion(
self,
*,
example_id: typing.Optional[str] = None,
functions: typing.Optional[typing.List[CopilotCompletionRequestFunctionsItem]] = None,
variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None,
input_prompt: typing.Optional[str] = None,
input_audio: typing.Optional[str] = None,
input_images: typing.Optional[typing.List[core.File]] = None,
input_documents: typing.Optional[typing.List[core.File]] = None,
doc_extract_url: typing.Optional[str] = None,
messages: typing.Optional[typing.List[ConversationEntry]] = None,
bot_script: typing.Optional[str] = None,
selected_model: typing.Optional[LargeLanguageModels] = None,
document_model: typing.Optional[str] = None,
task_instructions: typing.Optional[str] = None,
query_instructions: typing.Optional[str] = None,
keyword_instructions: typing.Optional[str] = None,
documents: typing.Optional[typing.List[core.File]] = None,
max_references: typing.Optional[int] = None,
max_context_words: typing.Optional[int] = None,
scroll_jump: typing.Optional[int] = None,
embedding_model: typing.Optional[EmbeddingModels] = None,
dense_weight: typing.Optional[float] = None,
citation_style: typing.Optional[CitationStyles] = None,
use_url_shortener: typing.Optional[bool] = None,
asr_model: typing.Optional[AsrModels] = None,
asr_language: typing.Optional[str] = None,
translation_model: typing.Optional[TranslationModels] = None,
user_language: typing.Optional[str] = None,
input_glossary_document: typing.Optional[core.File] = None,
output_glossary_document: typing.Optional[core.File] = None,
lipsync_model: typing.Optional[LipsyncModels] = None,
tools: typing.Optional[typing.List[LlmTools]] = None,
avoid_repetition: typing.Optional[bool] = None,
num_outputs: typing.Optional[int] = None,
quality: typing.Optional[float] = None,
max_tokens: typing.Optional[int] = None,
sampling_temperature: typing.Optional[float] = None,
response_format_type: typing.Optional[ResponseFormatType] = None,
tts_provider: typing.Optional[TextToSpeechProviders] = None,
uberduck_voice_name: typing.Optional[str] = None,
uberduck_speaking_rate: typing.Optional[float] = None,
google_voice_name: typing.Optional[str] = None,
google_speaking_rate: typing.Optional[float] = None,
google_pitch: typing.Optional[float] = None,
bark_history_prompt: typing.Optional[str] = None,
elevenlabs_voice_name: typing.Optional[str] = None,
elevenlabs_api_key: typing.Optional[str] = None,
elevenlabs_voice_id: typing.Optional[str] = None,
elevenlabs_model: typing.Optional[str] = None,
elevenlabs_stability: typing.Optional[float] = None,
elevenlabs_similarity_boost: typing.Optional[float] = None,
elevenlabs_style: typing.Optional[float] = None,
elevenlabs_speaker_boost: typing.Optional[bool] = None,
azure_voice_name: typing.Optional[str] = None,
openai_voice_name: typing.Optional[OpenAiTtsVoices] = None,
openai_tts_model: typing.Optional[OpenAiTtsModels] = None,
input_face: typing.Optional[core.File] = None,
face_padding_top: typing.Optional[int] = None,
face_padding_bottom: typing.Optional[int] = None,
face_padding_left: typing.Optional[int] = None,
face_padding_right: typing.Optional[int] = None,
sadtalker_settings: typing.Optional[CopilotCompletionRequestSadtalkerSettings] = None,
settings: typing.Optional[RunSettings] = None,
functions: typing.Optional[typing.List[CopilotCompletionRequestFunctionsItem]] = OMIT,
variables: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
input_prompt: typing.Optional[str] = OMIT,
input_audio: typing.Optional[str] = OMIT,
input_images: typing.Optional[typing.List[core.File]] = OMIT,
input_documents: typing.Optional[typing.List[core.File]] = OMIT,
doc_extract_url: typing.Optional[str] = OMIT,
messages: typing.Optional[typing.List[ConversationEntry]] = OMIT,
bot_script: typing.Optional[str] = OMIT,
selected_model: typing.Optional[LargeLanguageModels] = OMIT,
document_model: typing.Optional[str] = OMIT,
task_instructions: typing.Optional[str] = OMIT,
query_instructions: typing.Optional[str] = OMIT,
keyword_instructions: typing.Optional[str] = OMIT,
documents: typing.Optional[typing.List[core.File]] = OMIT,
max_references: typing.Optional[int] = OMIT,
max_context_words: typing.Optional[int] = OMIT,
scroll_jump: typing.Optional[int] = OMIT,
embedding_model: typing.Optional[EmbeddingModels] = OMIT,
dense_weight: typing.Optional[float] = OMIT,
citation_style: typing.Optional[CitationStyles] = OMIT,
use_url_shortener: typing.Optional[bool] = OMIT,
asr_model: typing.Optional[AsrModels] = OMIT,
asr_language: typing.Optional[str] = OMIT,
translation_model: typing.Optional[TranslationModels] = OMIT,
user_language: typing.Optional[str] = OMIT,
input_glossary_document: typing.Optional[core.File] = OMIT,
output_glossary_document: typing.Optional[core.File] = OMIT,
lipsync_model: typing.Optional[LipsyncModels] = OMIT,
tools: typing.Optional[typing.List[LlmTools]] = OMIT,
avoid_repetition: typing.Optional[bool] = OMIT,
num_outputs: typing.Optional[int] = OMIT,
quality: typing.Optional[float] = OMIT,
max_tokens: typing.Optional[int] = OMIT,
sampling_temperature: typing.Optional[float] = OMIT,
response_format_type: typing.Optional[ResponseFormatType] = OMIT,
tts_provider: typing.Optional[TextToSpeechProviders] = OMIT,
uberduck_voice_name: typing.Optional[str] = OMIT,
uberduck_speaking_rate: typing.Optional[float] = OMIT,
google_voice_name: typing.Optional[str] = OMIT,
google_speaking_rate: typing.Optional[float] = OMIT,
google_pitch: typing.Optional[float] = OMIT,
bark_history_prompt: typing.Optional[str] = OMIT,
elevenlabs_voice_name: typing.Optional[str] = OMIT,
elevenlabs_api_key: typing.Optional[str] = OMIT,
elevenlabs_voice_id: typing.Optional[str] = OMIT,
elevenlabs_model: typing.Optional[str] = OMIT,
elevenlabs_stability: typing.Optional[float] = OMIT,
elevenlabs_similarity_boost: typing.Optional[float] = OMIT,
elevenlabs_style: typing.Optional[float] = OMIT,
elevenlabs_speaker_boost: typing.Optional[bool] = OMIT,
azure_voice_name: typing.Optional[str] = OMIT,
openai_voice_name: typing.Optional[OpenAiTtsVoices] = OMIT,
openai_tts_model: typing.Optional[OpenAiTtsModels] = OMIT,
input_face: typing.Optional[core.File] = OMIT,
face_padding_top: typing.Optional[int] = OMIT,
face_padding_bottom: typing.Optional[int] = OMIT,
face_padding_left: typing.Optional[int] = OMIT,
face_padding_right: typing.Optional[int] = OMIT,
sadtalker_settings: typing.Optional[CopilotCompletionRequestSadtalkerSettings] = OMIT,
settings: typing.Optional[RunSettings] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> VideoBotsPageOutput:
"""
Expand Down

0 comments on commit fc411c4

Please sign in to comment.