Skip to content

Commit

Permalink
Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
klntsky committed Nov 14, 2024
1 parent d7f01e8 commit 01cbb32
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 74 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ This is an early work-in-progress. Follow [me on twitter](https://x.com/klntsky)

### To consider

- dynamic module loading vs. static module loading: dynamic is lazy, so skips unneeded modules, but static loading guarantees absence of runtime errors due to module resultion failures (which saves costs)
- dynamic module loading vs. static module loading: dynamic is lazy, so skips unneeded modules, but static loading guarantees absence of runtime errors due to module resolution failures (which saves costs)
- exception system. how to pass payloads with exceptions
- turning exceptions into continuations in spirit of [hurl](https://hurl.wtf)

Expand Down
14 changes: 10 additions & 4 deletions python/examples/choose-model.metaprompt
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
[$ You must choose the best LLM for a given prompt, considering all the options listed below:
[$ You must choose the best LLM for a given prompt,
considering all the options listed below:

- `gpt-3.5-turbo` - Best for tasks that don't require reasoning, like data processing or generation.
- `gpt-4o` - Will offer a very high level of intelligence and strong performance. Suitable for programming tasks that require reasoning about software architecture.
- `gpt-4o-mini` - Suitable for programming tasks that involve straightforward implementations, like utility functions.
- `gpt-3.5-turbo` - Best for tasks that don't require
reasoning, like data processing or generation.
- `gpt-4o` - Will offer a very high level of intelligence
and strong performance. Suitable for programming tasks
that require reasoning about software architecture.
- `gpt-4o-mini` - Suitable for programming tasks that
involve straightforward implementations, like utility
functions.

Output format: output ONLY the model ID without qoutes.

Expand Down
67 changes: 0 additions & 67 deletions python/main.py

This file was deleted.

7 changes: 5 additions & 2 deletions python/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def print_models(config):
print("Use --model to specify the default model.")


async def main():
async def _main():
args = parse_arguments()
config = load_config()

Expand All @@ -88,5 +88,8 @@ async def main():
print(chunk, end="")


def main():
asyncio.run(_main())

if __name__ == "__main__":
asyncio.run(main())
main()

0 comments on commit 01cbb32

Please sign in to comment.